colorize-haskell-1.0.1: Highligt Haskell source

Language.Haskell.Colorize

Synopsis

Documentation

data Token Source

The different types of that we recognize.

Constructors

Comment

Comment

Reserved

Reserved word

ReservedOp

Reserved operator

Var

Variables

VarOp

Variable operatros

Con

Constructors

ConOp

Constructor operators

Special

Special syntax (e.g., parens,brackets)

IntLit

Integer lieterals

FloatLit

Floating point literals

CharLit

Character literals

StringLit

String literals

type Style = Token -> String -> ShowSSource

The type of functions that specify how to render a value.

ansiDark :: StyleSource

Annotates tokens with ANSI escape sequences, suitable for a dark termianl

ansiLight :: StyleSource

Annotates tokens with ANSI escape sequences, suitable for a dark termianl