/usr/share/doc/libghc-hscolour-doc/html/Language-Haskell-HsColour-ColourHighlight.html is in libghc-hscolour-doc 1.24.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Language.Haskell.HsColour.ColourHighlight</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Language-Haskell-HsColour-ColourHighlight.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Language-Haskell-HsColour-ColourHighlight.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hscolour-1.24.1: Colourise Haskell code.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Language.Haskell.HsColour.ColourHighlight</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:Colour">Colour</a><ul class="subs"><li>= <a href="#v:Black">Black</a></li><li>| <a href="#v:Red">Red</a></li><li>| <a href="#v:Green">Green</a></li><li>| <a href="#v:Yellow">Yellow</a></li><li>| <a href="#v:Blue">Blue</a></li><li>| <a href="#v:Magenta">Magenta</a></li><li>| <a href="#v:Cyan">Cyan</a></li><li>| <a href="#v:White">White</a></li><li>| <a href="#v:Rgb">Rgb</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Highlight">Highlight</a><ul class="subs"><li>= <a href="#v:Normal">Normal</a></li><li>| <a href="#v:Bold">Bold</a></li><li>| <a href="#v:Dim">Dim</a></li><li>| <a href="#v:Underscore">Underscore</a></li><li>| <a href="#v:Blink">Blink</a></li><li>| <a href="#v:ReverseVideo">ReverseVideo</a></li><li>| <a href="#v:Concealed">Concealed</a></li><li>| <a href="#v:Foreground">Foreground</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a></li><li>| <a href="#v:Background">Background</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a></li><li>| <a href="#v:Italic">Italic</a></li></ul></li><li class="src short"><a href="#v:base256">base256</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Integral">Integral</a> int => (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> r) -> int -> r</li><li class="src short"><a href="#v:unbase">unbase</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Integral">Integral</a> int => int -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> int</li><li class="src short"><a href="#v:rgb24bit_to_xterm256">rgb24bit_to_xterm256</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Integral">Integral</a> t => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> t</li><li class="src short"><a href="#v:projectToBasicColour8">projectToBasicColour8</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a></li><li class="src short"><a href="#v:hlProjectToBasicColour8">hlProjectToBasicColour8</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Colour" class="def">Colour</a> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#Colour" class="link">Source</a> <a href="#t:Colour" class="selflink">#</a></p><div class="doc"><p>Colours supported by ANSI codes.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Black" class="def">Black</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Red" class="def">Red</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Green" class="def">Green</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Yellow" class="def">Yellow</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Blue" class="def">Blue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Magenta" class="def">Magenta</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Cyan" class="def">Cyan</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:White" class="def">White</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Rgb" class="def">Rgb</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Colour" class="caption collapser" onclick="toggleSection('i:Colour')">Instances</p><div id="section.i:Colour" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Colour:Enum:1" class="instance expander" onclick="toggleSection('i:id:Colour:Enum:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Enum">Enum</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a></span> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#line-52" class="link">Source</a> <a href="#t:Colour" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Colour:Enum:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a>] <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a>] <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a>] <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a>] <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Colour:Eq:2" class="instance expander" onclick="toggleSection('i:id:Colour:Eq:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a></span> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#line-14" class="link">Source</a> <a href="#t:Colour" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Colour:Eq:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Colour:Read:3" class="instance expander" onclick="toggleSection('i:id:Colour:Read:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a></span> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#line-14" class="link">Source</a> <a href="#t:Colour" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Colour:Read:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Colour:Show:4" class="instance expander" onclick="toggleSection('i:id:Colour:Show:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a></span> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#line-14" class="link">Source</a> <a href="#t:Colour" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Colour:Show:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Highlight" class="def">Highlight</a> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#Highlight" class="link">Source</a> <a href="#t:Highlight" class="selflink">#</a></p><div class="doc"><p>Types of highlighting supported by ANSI codes (and some extra styles).</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Normal" class="def">Normal</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Bold" class="def">Bold</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Dim" class="def">Dim</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Underscore" class="def">Underscore</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Blink" class="def">Blink</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:ReverseVideo" class="def">ReverseVideo</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Concealed" class="def">Concealed</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Foreground" class="def">Foreground</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Background" class="def">Background</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Italic" class="def">Italic</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Highlight" class="caption collapser" onclick="toggleSection('i:Highlight')">Instances</p><div id="section.i:Highlight" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Highlight:Eq:1" class="instance expander" onclick="toggleSection('i:id:Highlight:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a></span> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#line-89" class="link">Source</a> <a href="#t:Highlight" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Highlight:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Highlight:Read:2" class="instance expander" onclick="toggleSection('i:id:Highlight:Read:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a></span> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#line-89" class="link">Source</a> <a href="#t:Highlight" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Highlight:Read:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Highlight:Show:3" class="instance expander" onclick="toggleSection('i:id:Highlight:Show:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a></span> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#line-89" class="link">Source</a> <a href="#t:Highlight" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Highlight:Show:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:base256" class="def">base256</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Integral">Integral</a> int => (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> r) -> int -> r <a href="src/Language-Haskell-HsColour-ColourHighlight.html#base256" class="link">Source</a> <a href="#v:base256" class="selflink">#</a></p><div class="doc"><p>Convert an integer in the range [0,2^24-1] to its base 256-triplet, passing the result to the given continuation (avoid unnecessary tupleism).</p></div></div><div class="top"><p class="src"><a id="v:unbase" class="def">unbase</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Integral">Integral</a> int => int -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> int <a href="src/Language-Haskell-HsColour-ColourHighlight.html#unbase" class="link">Source</a> <a href="#v:unbase" class="selflink">#</a></p><div class="doc"><p>Convert a three-digit numeral in the given (as arg 1) base to its integer value.</p></div></div><div class="top"><p class="src"><a id="v:rgb24bit_to_xterm256" class="def">rgb24bit_to_xterm256</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Integral">Integral</a> t => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> t <a href="src/Language-Haskell-HsColour-ColourHighlight.html#rgb24bit_to_xterm256" class="link">Source</a> <a href="#v:rgb24bit_to_xterm256" class="selflink">#</a></p><div class="doc"><p>Approximate a 24-bit Rgb colour with a colour in the xterm256 6x6x6 colour cube, returning its index.</p></div></div><div class="top"><p class="src"><a id="v:projectToBasicColour8" class="def">projectToBasicColour8</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Colour">Colour</a> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#projectToBasicColour8" class="link">Source</a> <a href="#v:projectToBasicColour8" class="selflink">#</a></p><div class="doc"><p>Ap"proxi"mate a 24-bit Rgb colour with an ANSI8 colour. Will leave other colours unchanged and will never return an <code><a href="Language-Haskell-HsColour-ColourHighlight.html#v:Rgb">Rgb</a></code> constructor value. </p></div></div><div class="top"><p class="src"><a id="v:hlProjectToBasicColour8" class="def">hlProjectToBasicColour8</a> :: <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> -> <a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a> <a href="src/Language-Haskell-HsColour-ColourHighlight.html#hlProjectToBasicColour8" class="link">Source</a> <a href="#v:hlProjectToBasicColour8" class="selflink">#</a></p><div class="doc"><p>Lift <code><a href="Language-Haskell-HsColour-ColourHighlight.html#v:projectToBasicColour8">projectToBasicColour8</a></code> to <code><a href="Language-Haskell-HsColour-ColourHighlight.html#t:Highlight">Highlight</a></code>s</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|