colorize-haskell-1.0.1: Highligt Haskell source
Safe HaskellSafe-Inferred
LanguageHaskell98

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 -> ShowS Source #

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

ansiDark :: Style Source #

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

ansiLight :: Style Source #

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