mpretty-0.1.0.0: a monadic, extensible pretty printing library

Safe HaskellNone

Text.MPretty.StateSpace

Documentation

class Monoid out => PrettyOutput out whereSource

Methods

pString :: String -> outSource

pLength :: out -> IntSource

pFoldl :: (a -> Char -> a) -> a -> out -> aSource

data Layout Source

Constructors

Flat 
Break 

data Failure Source

Constructors

Fail 
NoFail 

data Palette Source

Constructors

Palette 

Fields

_punctuationColorL :: ConsoleState
 
_literalColorL :: ConsoleState
 
_binderColorL :: ConsoleState
 
_keywordColorL :: ConsoleState
 
_classifierColorL :: ConsoleState
 

type MonadRWS env out state m = (MonadReader env m, MonadWriter out m, MonadState state m)Source

type MonadPretty env out state m = (MonadRWS env out state m, MonadPlus m, HasLens env PrettyEnv, PrettyOutput out, HasLens state PrettyState)Source