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

Safe Haskell | None
Language | Haskell98

Language.Haskell.TH.FixedPpr

# Documentation

nestDepth :: Int Source

type Precedence = Int Source

appPrec :: Precedence Source

opPrec :: Precedence Source

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

Minimal complete definition

ppr

Methods

ppr :: a -> Doc Source

ppr_list :: [a] -> Doc Source

Instances

Ppr Exp Source |
Ppr Match Source |
Ppr Clause Source |
Ppr Pat Source |
Ppr Type Source |
Ppr Dec Source |
Ppr Name Source |
Ppr FunDep Source |
Ppr TyVarBndr Source |
Ppr Info Source |
Ppr Lit Source |
Ppr Body Source |
Ppr Stmt Source |
Ppr Range Source |
Ppr Foreign Source |
Ppr Con Source |
Ppr a => Ppr [a] Source |

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