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

type Precedence = Int

appPrec :: Precedence

unopPrec :: Precedence

opPrec :: Precedence

noPrec :: Precedence

parensIf :: Bool -> Doc -> Doc

pprint :: Ppr a => a -> String

class Ppr a where

Minimal complete definition

ppr

Methods

ppr :: a -> Doc

ppr_list :: [a] -> Doc

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

pprFixity :: Name -> Fixity -> Doc

pprPrefixOcc :: Name -> Doc

isSymOcc :: Name -> Bool

isSymbolASCII :: Char -> Bool

pprInfixExp :: Exp -> Doc

pprExp :: Precedence -> Exp -> Doc

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

pprMaybeExp :: Precedence -> Maybe Exp -> Doc

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

pprBody :: Bool -> Body -> Doc

pprLit :: Precedence -> Lit -> Doc

bytesToString :: [Word8] -> String

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

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

pprStrictType :: (Strict, Type) -> Doc

pprParendType :: Type -> Doc

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

pprFunArgType :: Type -> Doc

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

pprTyLit :: TyLit -> Doc

pprCxt :: Cxt -> Doc

where_clause :: [Dec] -> Doc

showtextl :: Show a => a -> Doc

hashParens :: Doc -> Doc

quoteParens :: Doc -> Doc