template-haskell-2.5.0.0

Language.Haskell.TH.Ppr

Description

contains a prettyprinter for the Template Haskell datatypes

# Documentation

nestDepth :: Int

type Precedence = Int

opPrec :: Precedence

noPrec :: Precedence

appPrec :: Precedence

parensIf :: Bool -> Doc -> Doc

pprint :: Ppr a => a -> String

class Ppr a where

Methods

ppr :: a -> Doc

ppr_list :: [a] -> Doc

Instances

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

ppr_sig :: Name -> Type -> Doc

pprFixity :: Name -> Fixity -> Doc

pprInfixExp :: Exp -> Doc

pprExp :: Precedence -> Exp -> Doc

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

pprMaybeExp :: Precedence -> Maybe Exp -> Doc

pprBody :: Bool -> Body -> Doc

pprLit :: Precedence -> Lit -> Doc

pprPat :: Precedence -> Pat -> Doc

ppr_dec :: Bool -> Dec -> Doc

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

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

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

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

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

pprStrictType :: (Strict, Type) -> Doc

pprParendType :: Type -> Doc

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

pprFunArgType :: Type -> Doc

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

pprArrowArgKind :: Kind -> Doc

pprCxt :: Cxt -> Doc

where_clause :: [Dec] -> Doc

showtextl :: Show a => a -> Doc