MiniAgda
Safe HaskellNone
LanguageHaskell98

PrettyTCM

Documentation

type Doc = Doc Source #

empty :: Monad m => m Doc Source #

comma :: Monad m => m Doc Source #

colon :: Monad m => m Doc Source #

pretty :: (Monad m, Pretty a) => a -> m Doc Source #

text :: Monad m => String -> m Doc Source #

pwords :: Monad m => String -> [m Doc] Source #

fwords :: Monad m => String -> m Doc Source #

sep :: Monad f => [f Doc] -> f Doc Source #

fsep :: Monad f => [f Doc] -> f Doc Source #

hsep :: Monad f => [f Doc] -> f Doc Source #

vcat :: Monad f => [f Doc] -> f Doc Source #

($$) :: Applicative f => f Doc -> f Doc -> f Doc Source #

(<>) :: Applicative f => f Doc -> f Doc -> f Doc Source #

(<+>) :: Applicative f => f Doc -> f Doc -> f Doc Source #

nest :: Functor f => Int -> f Doc -> f Doc Source #

braces :: Functor f => f Doc -> f Doc Source #

brackets :: Functor f => f Doc -> f Doc Source #

parens :: Functor f => f Doc -> f Doc Source #

prettyList :: Monad f => [f Doc] -> f Doc Source #

punctuate :: Monad f => f Doc -> [f Doc] -> [f Doc] Source #

class ToExpr a where Source #

Instances

Instances details
ToExpr Expr Source # 
Instance details

Defined in PrettyTCM

ToExpr Val Source # 
Instance details

Defined in PrettyTCM

class PrettyTCM a where Source #

Methods

prettyTCM :: a -> TypeCheck Doc Source #

Instances

Instances details
PrettyTCM Expr Source # 
Instance details

Defined in PrettyTCM

PrettyTCM Name Source # 
Instance details

Defined in PrettyTCM

PrettyTCM Pattern Source # 
Instance details

Defined in PrettyTCM

PrettyTCM Val Source # 
Instance details

Defined in PrettyTCM

ToExpr a => PrettyTCM (Bound a) Source # 
Instance details

Defined in PrettyTCM

ToExpr a => PrettyTCM (Measure a) Source # 
Instance details

Defined in PrettyTCM

PrettyTCM (Sort Expr) Source # 
Instance details

Defined in PrettyTCM

PrettyTCM (Sort Val) Source # 
Instance details

Defined in PrettyTCM

PrettyTCM a => PrettyTCM (OneOrTwo a) Source # 
Instance details

Defined in PrettyTCM

PrettyTCM [Pattern] Source # 
Instance details

Defined in PrettyTCM

PrettyTCM [Val] Source # 
Instance details

Defined in PrettyTCM

(PrettyTCM a, PrettyTCM b) => PrettyTCM (a, b) Source # 
Instance details

Defined in PrettyTCM

Methods

prettyTCM :: (a, b) -> TypeCheck Doc Source #