template-haskell-2.11.0.0: Support library for Template Haskell

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.Ppr

Description

contains a prettyprinter for the Template Haskell datatypes

Synopsis

Documentation

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 

Methods

ppr :: Exp -> Doc Source

ppr_list :: [Exp] -> Doc Source

Ppr Match 

Methods

ppr :: Match -> Doc Source

ppr_list :: [Match] -> Doc Source

Ppr Clause 
Ppr Pat 

Methods

ppr :: Pat -> Doc Source

ppr_list :: [Pat] -> Doc Source

Ppr Type 

Methods

ppr :: Type -> Doc Source

ppr_list :: [Type] -> Doc Source

Ppr Dec 

Methods

ppr :: Dec -> Doc Source

ppr_list :: [Dec] -> Doc Source

Ppr Name 

Methods

ppr :: Name -> Doc Source

ppr_list :: [Name] -> Doc Source

Ppr FunDep 
Ppr TyVarBndr 
Ppr InjectivityAnn 
Ppr Role 

Methods

ppr :: Role -> Doc Source

ppr_list :: [Role] -> Doc Source

Ppr TyLit 

Methods

ppr :: TyLit -> Doc Source

ppr_list :: [TyLit] -> Doc Source

Ppr FamilyResultSig 
Ppr Bang 

Methods

ppr :: Bang -> Doc Source

ppr_list :: [Bang] -> Doc Source

Ppr Con 

Methods

ppr :: Con -> Doc Source

ppr_list :: [Con] -> Doc Source

Ppr DecidedStrictness 
Ppr SourceStrictness 
Ppr SourceUnpackedness 
Ppr RuleBndr 
Ppr Phases 
Ppr RuleMatch 
Ppr Inline 
Ppr Pragma 
Ppr Foreign 
Ppr FamFlavour 
Ppr Range 

Methods

ppr :: Range -> Doc Source

ppr_list :: [Range] -> Doc Source

Ppr Stmt 

Methods

ppr :: Stmt -> Doc Source

ppr_list :: [Stmt] -> Doc Source

Ppr Lit 

Methods

ppr :: Lit -> Doc Source

ppr_list :: [Lit] -> Doc Source

Ppr ModuleInfo 
Ppr Info 

Methods

ppr :: Info -> Doc Source

ppr_list :: [Info] -> Doc Source

Ppr Loc 

Methods

ppr :: Loc -> Doc Source

ppr_list :: [Loc] -> Doc Source

Ppr Module 
Ppr a => Ppr [a] 

Methods

ppr :: [a] -> Doc Source

ppr_list :: [[a]] -> Doc Source

ppr_data :: Doc -> Cxt -> Name -> Doc -> Maybe Kind -> [Con] -> Cxt -> Doc Source

ppr_newtype :: Doc -> Cxt -> Name -> Doc -> Maybe Kind -> Con -> Cxt -> Doc Source

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

Deprecated: As of template-haskell-2.11.0.0, VarStrictType has been replaced by VarBangType. Please use pprVarBangType instead.

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

Deprecated: As of template-haskell-2.11.0.0, StrictType has been replaced by BangType. Please use pprBangType instead.

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

commaSep :: Ppr a => [a] -> Doc Source

commaSepWith :: (a -> Doc) -> [a] -> Doc Source

semiSep :: Ppr a => [a] -> Doc Source