| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Language.Haskell.TH.Ppr
Description
contains a prettyprinter for the Template Haskell datatypes
Synopsis
- appPrec :: Precedence
- bar :: Doc
- bytesToString :: [Word8] -> String
- commaSep :: Ppr a => [a] -> Doc
- commaSepApplied :: [Name] -> Doc
- commaSepWith :: (a -> Doc) -> [a] -> Doc
- fromTANormal :: TypeArg -> Maybe Type
- funPrec :: Precedence
- hashParens :: Doc -> Doc
- isStarT :: Type -> Bool
- isSymOcc :: Name -> Bool
- nestDepth :: Int
- noPrec :: Precedence
- opPrec :: Precedence
- parensIf :: Bool -> Doc -> Doc
- pprBangType :: BangType -> Doc
- pprBndrVis :: BndrVis -> Doc -> Doc
- pprBody :: Bool -> Body -> Doc
- pprClause :: Bool -> Clause -> Doc
- pprCtxWith :: Ppr a => (Precedence -> a -> Doc) -> [a] -> Doc
- pprCxt :: Cxt -> Doc
- pprExp :: Precedence -> Exp -> Doc
- pprFields :: [(Name, Exp)] -> Doc
- pprFixity :: Name -> Fixity -> NamespaceSpecifier -> Doc
- pprForall :: [TyVarBndr Specificity] -> Cxt -> Doc
- pprForall' :: PprFlag flag => ForallVisFlag -> [TyVarBndr flag] -> Cxt -> Doc
- pprForallVis :: [TyVarBndr ()] -> Cxt -> Doc
- pprFunArgType :: Type -> Doc
- pprGadtRHS :: [(Strict, Type)] -> Type -> Doc
- pprGuarded :: Doc -> (Guard, Exp) -> Doc
- pprInfixExp :: Exp -> Doc
- pprInfixT :: Precedence -> Type -> Doc
- pprLit :: Precedence -> Lit -> Doc
- pprMatchPat :: Pat -> Doc
- pprMaybeExp :: Precedence -> Maybe Exp -> Doc
- pprNamespaceSpecifier :: NamespaceSpecifier -> Doc
- pprParendType :: Type -> Doc
- pprParendTypeArg :: TypeArg -> Doc
- pprPat :: Precedence -> Pat -> Doc
- pprPatSynSig :: Name -> PatSynType -> Doc
- pprPatSynType :: PatSynType -> Doc
- pprPrefixOcc :: Name -> Doc
- pprRecFields :: [(Name, Strict, Type)] -> Type -> Doc
- pprStrictType :: (Strict, Type) -> Doc
- pprString :: String -> Doc
- pprTyApp :: Precedence -> (Type, [TypeArg]) -> Doc
- pprTyLit :: TyLit -> Doc
- pprType :: Precedence -> Type -> Doc
- pprVarBangType :: VarBangType -> Doc
- pprVarStrictType :: (Name, Strict, Type) -> Doc
- ppr_bndrs :: PprFlag flag => Maybe [TyVarBndr flag] -> Doc
- ppr_ctx_preds_with :: Ppr a => (Precedence -> a -> Doc) -> Precedence -> [a] -> Doc
- ppr_cxt_preds :: Precedence -> Cxt -> Doc
- ppr_data :: Bool -> Doc -> Cxt -> Maybe Name -> Doc -> Maybe Kind -> [Con] -> [DerivClause] -> Doc
- ppr_dec :: Bool -> Dec -> Doc
- ppr_deriv_clause :: DerivClause -> Doc
- ppr_deriv_strategy :: DerivStrategy -> Doc
- ppr_newtype :: Bool -> Doc -> Cxt -> Maybe Name -> Doc -> Maybe Kind -> Con -> [DerivClause] -> Doc
- ppr_overlap :: Overlap -> Doc
- ppr_sig :: Name -> Type -> Doc
- ppr_tf_head :: TypeFamilyHead -> Doc
- ppr_tySyn :: Doc -> Maybe Name -> Doc -> Type -> Doc
- ppr_type_data :: Bool -> Doc -> Cxt -> Maybe Name -> Doc -> Maybe Kind -> [Con] -> [DerivClause] -> Doc
- ppr_typedef :: String -> Bool -> Doc -> Cxt -> Maybe Name -> Doc -> Maybe Kind -> [Con] -> [DerivClause] -> Doc
- pprint :: Ppr a => a -> String
- qualPrec :: Precedence
- quoteParens :: Doc -> Doc
- semiSep :: Ppr a => [a] -> Doc
- semiSepWith :: (a -> Doc) -> [a] -> Doc
- sepWith :: Doc -> (a -> Doc) -> [a] -> Doc
- showtextl :: Show a => a -> Doc
- sigPrec :: Precedence
- split :: Type -> (Type, [TypeArg])
- unboxedSumBars :: Doc -> SumAlt -> SumArity -> Doc
- unopPrec :: Precedence
- where_clause :: [Dec] -> Doc
- data ForallVisFlag
- = ForallVis
- | ForallInvis
- class Ppr a where
- class PprFlag flag where
- pprTyVarBndr :: TyVarBndr flag -> Doc
- type Precedence = Int
- data TypeArg
Documentation
appPrec :: Precedence #
bytesToString :: [Word8] -> String #
commaSepApplied :: [Name] -> Doc #
commaSepWith :: (a -> Doc) -> [a] -> Doc #
fromTANormal :: TypeArg -> Maybe Type #
funPrec :: Precedence #
hashParens :: Doc -> Doc #
noPrec :: Precedence #
opPrec :: Precedence #
pprBangType :: BangType -> Doc #
pprBndrVis :: BndrVis -> Doc -> Doc #
pprCtxWith :: Ppr a => (Precedence -> a -> Doc) -> [a] -> Doc #
pprExp :: Precedence -> Exp -> Doc #
pprForall' :: PprFlag flag => ForallVisFlag -> [TyVarBndr flag] -> Cxt -> Doc #
pprForallVis :: [TyVarBndr ()] -> Cxt -> Doc #
pprFunArgType :: Type -> Doc #
pprInfixExp :: Exp -> Doc #
pprInfixT :: Precedence -> Type -> Doc #
pprLit :: Precedence -> Lit -> Doc #
pprMatchPat :: Pat -> Doc #
pprMaybeExp :: Precedence -> Maybe Exp -> Doc #
pprParendType :: Type -> Doc #
pprParendTypeArg :: TypeArg -> Doc #
pprPat :: Precedence -> Pat -> Doc #
pprPatSynSig :: Name -> PatSynType -> Doc #
Pretty prints a pattern synonym type signature
pprPatSynType :: PatSynType -> Doc #
Pretty prints a pattern synonym's type; follows the usual
conventions to print a pattern synonym type compactly, yet
unambiguously. See the note on PatSynType and the section on
pattern synonyms in the GHC user's guide for more information.
pprPrefixOcc :: Name -> Doc #
pprStrictType :: (Strict, Type) -> Doc #
Deprecated: As of template-haskell-2.11.0.0, StrictType has been replaced by BangType . Please use pprBangType instead.
pprType :: Precedence -> Type -> Doc #
pprVarBangType :: VarBangType -> Doc #
pprVarStrictType :: (Name, Strict, Type) -> Doc #
Deprecated: As of template-haskell-2.11.0.0, VarStrictType has been replaced by VarBangType . Please use pprVarBangType instead.
ppr_ctx_preds_with :: Ppr a => (Precedence -> a -> Doc) -> Precedence -> [a] -> Doc #
ppr_cxt_preds :: Precedence -> Cxt -> Doc #
ppr_deriv_clause :: DerivClause -> Doc #
ppr_deriv_strategy :: DerivStrategy -> Doc #
ppr_overlap :: Overlap -> Doc #
ppr_tf_head :: TypeFamilyHead -> Doc #
ppr_typedef :: String -> Bool -> Doc -> Cxt -> Maybe Name -> Doc -> Maybe Kind -> [Con] -> [DerivClause] -> Doc #
qualPrec :: Precedence #
quoteParens :: Doc -> Doc #
semiSepWith :: (a -> Doc) -> [a] -> Doc #
sigPrec :: Precedence #
unopPrec :: Precedence #
where_clause :: [Dec] -> Doc #
data ForallVisFlag #
Instances
Instances details
Instance details
Defined in GHC.Internal.TH.Ppr
Methods
showsPrec :: Int -> ForallVisFlag -> ShowS #
show :: ForallVisFlag -> String #
showList :: [ForallVisFlag] -> ShowS #
Minimal complete definition
Instances
Instances details
Instance details
Defined in GHC.Internal.TH.Ppr
Instance details
Defined in GHC.Internal.TH.Ppr
Instance details
Defined in GHC.Internal.TH.Ppr
Instance details
Defined in GHC.Internal.TH.Ppr
Instance details
Defined in GHC.Internal.TH.Ppr
Instance details
Defined in GHC.Internal.TH.Ppr
Instance details
Defined in GHC.Internal.TH.Ppr
Methods
pprTyVarBndr :: TyVarBndr flag -> Doc #
Instances
Instances details
Instance details
Defined in GHC.Internal.TH.Ppr
Methods
pprTyVarBndr :: TyVarBndr Specificity -> Doc #
type Precedence = Int #