derive-2.5.13: A program and library to derive instances for data types

Safe Haskell | None

Language.Haskell.TH.FixedPpr

# Documentation

nestDepth :: Int Source

type Precedence = Int Source

appPrec :: Precedence Source

noPrec :: Precedence Source

opPrec :: Precedence Source

parensIf :: Bool -> Doc -> Doc Source

showNameRaw :: Name -> String Source

isPrefixName :: Name -> Bool Source

pprName_ :: Bool -> Name -> 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 Info |
Ppr Lit |
Ppr Body |
Ppr Stmt |
Ppr Range |
Ppr Foreign |
Ppr Con |
Ppr a => Ppr [a] |

ppr_sig :: (Ppr a, Ppr a1) => a -> a1 -> Doc Source

pprFixity :: Name -> Fixity -> Doc Source

pprExpInfix :: 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

deQualLhsHead :: Dec -> Dec Source

deQualName :: Name -> Name Source

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

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

pprParendType :: Type -> Doc Source

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

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

pprCxt :: Cxt -> Doc Source

where_clause :: [Dec] -> Doc Source

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