Language.Haskell.HsColour.Colourise

| hscolour-1.17: Colourise Haskell code. | Contents | Index
Language.Haskell.HsColour.Colourise
Synopsis
module Language.Haskell.HsColour.ColourHighlight
data ColourPrefs = ColourPrefs {
keyword :: [Highlight]
keyglyph :: [Highlight]
layout :: [Highlight]
comment :: [Highlight]
conid :: [Highlight]
varid :: [Highlight]
conop :: [Highlight]
varop :: [Highlight]
string :: [Highlight]
char :: [Highlight]
number :: [Highlight]
cpp :: [Highlight]
selection :: [Highlight]
variantselection :: [Highlight]
definition :: [Highlight]
}
readColourPrefs :: IO ColourPrefs
defaultColourPrefs :: ColourPrefs
colourise :: ColourPrefs -> TokenType -> [Highlight]
Documentation
module Language.Haskell.HsColour.ColourHighlight
data ColourPrefs
Colour preferences.
Constructors
ColourPrefs |
keyword :: [Highlight] |
keyglyph :: [Highlight] |
layout :: [Highlight] |
comment :: [Highlight] |
conid :: [Highlight] |
varid :: [Highlight] |
conop :: [Highlight] |
varop :: [Highlight] |
string :: [Highlight] |
char :: [Highlight] |
number :: [Highlight] |
cpp :: [Highlight] |
selection :: [Highlight] |
variantselection :: [Highlight] |
definition :: [Highlight] |
Instances
Eq ColourPrefs |
Read ColourPrefs |
Show ColourPrefs |
readColourPrefs :: IO ColourPrefs
Read colour preferences from .hscolour file in the current directory, or failing that, from $HOME/.hscolour, and failing that, returns a default set of prefs.
defaultColourPrefs :: ColourPrefs
colourise :: ColourPrefs -> TokenType -> [Highlight]
Convert token classification to colour highlights.
Produced by Haddock version 2.7.2