template-haskell-2.10.0.0: Support library for Template Haskell

Safe Haskell | None
Language | Haskell2010

Language.Haskell.TH.Ppr

Description

contains a prettyprinter for the Template Haskell datatypes

# Documentation

nestDepth :: Int Source

type Precedence = Int Source

appPrec :: Precedence Source

unopPrec :: Precedence Source

opPrec :: Precedence Source

noPrec :: Precedence Source

parensIf :: Bool -> Doc -> 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 |
Ppr Match |
Ppr Clause |
Ppr Pat |
Ppr Type |
Ppr Dec |
Ppr Name |
Ppr FunDep |
Ppr TyVarBndr |
Ppr Role |
Ppr TyLit |
Ppr Con |
Ppr RuleBndr |
Ppr Phases |
Ppr RuleMatch |
Ppr Inline |
Ppr Pragma |
Ppr Foreign |
Ppr FamFlavour |
Ppr Range |
Ppr Stmt |
Ppr Lit |
Ppr ModuleInfo |
Ppr Info |
Ppr Loc |
Ppr Module |
Ppr a => Ppr [a] |

ppr_sig :: Name -> Type -> Doc Source

pprFixity :: Name -> Fixity -> Doc Source

pprPrefixOcc :: Name -> Doc Source

isSymOcc :: Name -> Bool Source

isSymbolASCII :: Char -> Bool Source

pprInfixExp :: Exp -> Doc Source

pprExp :: Precedence -> Exp -> Doc Source

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

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

pprGuarded :: Doc -> (Guard, Exp) -> Doc Source

pprBody :: Bool -> Body -> Doc Source

pprLit :: Precedence -> Lit -> Doc Source

bytesToString :: [Word8] -> String Source

pprString :: String -> 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

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

pprTyLit :: TyLit -> Doc Source

pprCxt :: Cxt -> Doc Source

where_clause :: [Dec] -> Doc Source

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

hashParens :: Doc -> Doc Source

quoteParens :: Doc -> Doc Source