hindent-5.3.4: Extensible Haskell pretty printer
Safe HaskellSafe-Inferred
LanguageHaskell2010

HIndent.Types

Description

All types.

Synopsis

Documentation

newtype Printer a Source #

A pretty printing monad.

Constructors

Printer 

Instances

Instances details
Alternative Printer Source # 
Instance details

Defined in HIndent.Types

Applicative Printer Source # 
Instance details

Defined in HIndent.Types

Methods

pure :: a -> Printer a Source #

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

liftA2 :: (a -> b -> c) -> Printer a -> Printer b -> Printer c Source #

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

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

Functor Printer Source # 
Instance details

Defined in HIndent.Types

Methods

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

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

Monad Printer Source # 
Instance details

Defined in HIndent.Types

Methods

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

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

return :: a -> Printer a Source #

MonadPlus Printer Source # 
Instance details

Defined in HIndent.Types

Methods

mzero :: Printer a Source #

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

MonadState PrintState Printer Source # 
Instance details

Defined in HIndent.Types

data PrintState Source #

The state of the pretty printer.

Constructors

PrintState 

Fields

Instances

Instances details
MonadState PrintState Printer Source # 
Instance details

Defined in HIndent.Types

data Config Source #

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

Constructors

Config 

Fields

Instances

Instances details
FromJSON Config Source # 
Instance details

Defined in HIndent.Types

Methods

parseJSON :: Value -> Parser Config

parseJSONList :: Value -> Parser [Config]

readExtension :: (Monad m, MonadFail m) => String -> m Extension Source #

Parse an extension.

defaultConfig :: Config Source #

Default style configuration.

data NodeInfo Source #

Information for each node in the AST.

Constructors

NodeInfo 

Fields

Instances

Instances details
Show NodeInfo Source # 
Instance details

Defined in HIndent.Types