Language.Haskell.Colorize
data Token Source #
The different types of that we recognize.
Constructors
Comment
Reserved word
Reserved operator
Variables
Variable operatros
Constructor operators
Special syntax (e.g., parens,brackets)
Integer lieterals
Floating point literals
Character literals
String literals
type Style = Token -> String -> ShowS Source #
The type of functions that specify how to render a value.
render :: Style -> String -> ShowS Source #
ansiDark :: Style Source #
Annotates tokens with ANSI escape sequences, suitable for a dark termianl
ansiLight :: Style Source #