template-haskell-2.10.0.0: Support library for Template Haskell

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.Ppr

Description

contains a prettyprinter for the Template Haskell datatypes

Documentation

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

ppr_sig :: Name -> Type -> Doc

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

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

pprBody :: Bool -> Body -> 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

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

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

pprCxt :: Cxt -> Doc

showtextl :: Show a => a -> Doc