hindent-5.2.3: Extensible Haskell pretty printer

Safe HaskellNone
LanguageHaskell98

HIndent.Types

Description

All types.

Synopsis

Documentation

newtype Printer a #

A pretty printing monad.

Constructors

Printer 

Instances

Monad Printer # 

Methods

(>>=) :: Printer a -> (a -> Printer b) -> Printer b #

(>>) :: Printer a -> Printer b -> Printer b #

return :: a -> Printer a #

fail :: String -> Printer a #

Functor Printer # 

Methods

fmap :: (a -> b) -> Printer a -> Printer b #

(<$) :: a -> Printer b -> Printer a #

Applicative Printer # 

Methods

pure :: a -> Printer a #

(<*>) :: Printer (a -> b) -> Printer a -> Printer b #

(*>) :: Printer a -> Printer b -> Printer b #

(<*) :: Printer a -> Printer b -> Printer a #

Alternative Printer # 

Methods

empty :: Printer a #

(<|>) :: Printer a -> Printer a -> Printer a #

some :: Printer a -> Printer [a] #

many :: Printer a -> Printer [a] #

MonadPlus Printer # 

Methods

mzero :: Printer a #

mplus :: Printer a -> Printer a -> Printer a #

MonadState PrintState Printer # 

data PrintState #

The state of the pretty printer.

Constructors

PrintState 

Fields

data Config #

Configurations shared among the different styles. Styles may pay attention to or completely disregard this configuration.

Constructors

Config 

Fields

defaultConfig :: Config #

Default style configuration.

data NodeInfo #

Information for each node in the AST.

Constructors

NodeInfo 

Fields

Instances