hscolourSource codeContentsIndex
Language.Haskell.HsColour
Description

This is a library with colourises Haskell code. It currently has three output formats:

  • ANSI terminal codes
  • LaTeX macros
  • HTML with font tags
  • HTML with CSS.
Synopsis
data Output
= TTY
| LaTeX
| HTML
| CSS
data ColourPrefs = ColourPrefs {
keyword, keyglyph, layout, comment, conid, varid, conop, varop, string, char, number, selection, variantselection :: [Highlight]
}
hscolour :: Output -> ColourPrefs -> Bool -> String -> String
Documentation
data Output Source
The supported output formats.
Constructors
TTYANSI terminal codes
LaTeXTeX macros
HTMLHTML with font tags
CSSHTML with CSS.
data ColourPrefs Source
Colour preferences.
Constructors
ColourPrefs
keyword, keyglyph, layout, comment, conid, varid, conop, varop, string, char, number, selection, variantselection :: [Highlight]
show/hide Instances
hscolourSource
:: OutputOutput format.
-> ColourPrefsColour preferences for formats that support it.
-> BoolWhether to include anchors.
-> StringHaskell source code.
-> StringColoured Haskell source code.
Colourise Haskell source code with the give output format.
Produced by Haddock version 0.8