Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Pretty a where
- data PrettyOpts = PrettyOpts {
- showUniques :: Bool
- showIdInfo :: Bool
- showLetTypes :: Bool
- showUnfoldings :: Bool
- defaultPrettyOpts :: PrettyOpts
- pprBinder :: PrettyOpts -> Binder -> Doc
- pprRational :: Rational -> Doc
- pprIdInfo :: PrettyOpts -> IdInfo Binder Binder -> IdDetails -> Doc
- pprUnfolding :: PrettyOpts -> Unfolding Binder Binder -> Doc
- data TyPrec
- pprType :: PrettyOpts -> Type -> Doc
- pprType' :: PrettyOpts -> TyPrec -> Type -> Doc
- maybeParens :: Bool -> Doc -> Doc
- pprExpr :: PrettyOpts -> Expr -> Doc
- pprExpr' :: PrettyOpts -> Bool -> Expr -> Doc
- pprTopBinding :: PrettyOpts -> TopBinding -> Doc
- pprTypeSig :: PrettyOpts -> Binder -> Doc
- pprBinding :: PrettyOpts -> Binder -> Expr -> Doc
- pprModule :: PrettyOpts -> Module -> Doc
- comment :: Doc -> Doc
- dcolon :: Doc
- smallRArrow :: Doc
- hang' :: Doc -> Int -> Doc -> Doc
- ppWhen :: Bool -> Doc -> Doc
Documentation
The member prettyList
is only used to define the instance Pretty
a => Pretty [a]
. In normal circumstances only the pretty
function
is used.
data PrettyOpts Source #
PrettyOpts | |
|
pprRational :: Rational -> Doc Source #
pprUnfolding :: PrettyOpts -> Unfolding Binder Binder -> Doc Source #
pprTopBinding :: PrettyOpts -> TopBinding -> Doc Source #
pprTypeSig :: PrettyOpts -> Binder -> Doc Source #
pprBinding :: PrettyOpts -> Binder -> Expr -> Doc Source #
smallRArrow :: Doc Source #