template-haskell-2.5.0.0

Language.Haskell.TH.Ppr

Description

contains a prettyprinter for the Template Haskell datatypes

# Documentation

nestDepth :: Int Source

type Precedence = Int Source

opPrec :: Precedence Source

noPrec :: Precedence Source

appPrec :: Precedence Source

parensIf :: Bool -> Doc -> Doc Source

pprint :: Ppr a => a -> String Source

class Ppr a where Source

Methods

ppr :: a -> Doc Source

ppr_list :: [a] -> Doc Source

Instances

Ppr Exp |
Ppr Match |
Ppr Clause |
Ppr Pat |
Ppr Type |
Ppr Dec |
Ppr Name |
Ppr FunDep |
Ppr Pred |
Ppr TyVarBndr |
Ppr Kind |
Ppr Con |
Ppr Pragma |
Ppr Foreign |
Ppr FamFlavour |
Ppr Range |
Ppr Stmt |
Ppr ClassInstance |
Ppr Info |
Ppr a => Ppr [a] |

ppr_sig :: Name -> Type -> Doc Source

pprFixity :: Name -> Fixity -> Doc Source

pprInfixExp :: Exp -> Doc Source

pprExp :: Precedence -> Exp -> Doc Source

pprFields :: [(Name, Exp)] -> Doc Source

pprMaybeExp :: Precedence -> Maybe Exp -> Doc Source

pprBody :: Bool -> Body -> Doc Source

pprLit :: Precedence -> Lit -> Doc Source

pprPat :: Precedence -> Pat -> Doc Source

ppr_dec :: Bool -> Dec -> Doc Source

ppr_data :: Doc -> Cxt -> Name -> Doc -> [Con] -> [Name] -> Doc Source

ppr_newtype :: Doc -> Cxt -> Name -> Doc -> Con -> [Name] -> Doc Source

ppr_tySyn :: Doc -> Name -> Doc -> Type -> Doc Source

ppr_activation :: Maybe (Bool, Int) -> Doc Source

pprVarStrictType :: (Name, Strict, Type) -> Doc Source

pprStrictType :: (Strict, Type) -> Doc Source

pprParendType :: Type -> Doc Source

pprTyApp :: (Type, [Type]) -> Doc Source

pprFunArgType :: Type -> Doc Source

split :: Type -> (Type, [Type])Source

pprArrowArgKind :: Kind -> Doc Source

pprCxt :: Cxt -> Doc Source

where_clause :: [Dec] -> Doc Source

showtextl :: Show a => a -> Doc Source