floskell-0.11.1: A flexible Haskell source code pretty printer

Safe Haskell | None
Language | Haskell2010

Floskell.Pretty

Synopsis

- class Pretty (ast :: Type -> Type) where
  - prettyPrint :: ast NodeInfo -> Printer ()
- pretty :: (Annotated ast, Pretty ast) => ast NodeInfo -> Printer ()

# Documentation

class Pretty (ast :: Type -> Type) where #

Type class for pretty-printable types.

Minimal complete definition

Nothing

Methods

prettyPrint :: ast NodeInfo -> Printer () #

default prettyPrint :: Pretty (ast NodeInfo) => ast NodeInfo -> Printer () #

#### Instances

Instances details

Pretty Activation # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Activation NodeInfo -> Printer () #
Pretty Alt # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Alt NodeInfo -> Printer () #
Pretty Annotation # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Annotation NodeInfo -> Printer () #
Pretty Assoc # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Assoc NodeInfo -> Printer () #
Pretty Asst # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Asst NodeInfo -> Printer () #
Pretty BangType # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: BangType NodeInfo -> Printer () #
Pretty Binds # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Binds NodeInfo -> Printer () #
Pretty BooleanFormula # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: BooleanFormula NodeInfo -> Printer () #
Pretty Bracket # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Bracket NodeInfo -> Printer () #
Pretty CallConv # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: CallConv NodeInfo -> Printer () #
Pretty ClassDecl # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ClassDecl NodeInfo -> Printer () #
Pretty ConDecl # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ConDecl NodeInfo -> Printer () #
Pretty Context # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Context NodeInfo -> Printer () #
Pretty DataOrNew # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: DataOrNew NodeInfo -> Printer () #
Pretty Decl # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Decl NodeInfo -> Printer () #
Pretty DeclHead # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: DeclHead NodeInfo -> Printer () #
Pretty DerivStrategy # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: DerivStrategy NodeInfo -> Printer () #
Pretty Deriving # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Deriving NodeInfo -> Printer () #
Pretty Exp # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Exp NodeInfo -> Printer () #
Pretty ExportSpec # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ExportSpec NodeInfo -> Printer () #
Pretty FieldDecl # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: FieldDecl NodeInfo -> Printer () #
Pretty FieldUpdate # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: FieldUpdate NodeInfo -> Printer () #
Pretty FunDep # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: FunDep NodeInfo -> Printer () #
Pretty GadtDecl # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: GadtDecl NodeInfo -> Printer () #
Pretty GuardedRhs # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: GuardedRhs NodeInfo -> Printer () #
Pretty IPBind # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: IPBind NodeInfo -> Printer () #
Pretty IPName # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: IPName NodeInfo -> Printer () #
Pretty ImportDecl # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ImportDecl NodeInfo -> Printer () #
Pretty ImportSpec # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ImportSpec NodeInfo -> Printer () #
Pretty ImportSpecList # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ImportSpecList NodeInfo -> Printer () #
Pretty InjectivityInfo # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: InjectivityInfo NodeInfo -> Printer () #
Pretty InstDecl # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: InstDecl NodeInfo -> Printer () #
Pretty InstHead # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: InstHead NodeInfo -> Printer () #
Pretty InstRule # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: InstRule NodeInfo -> Printer () #
Pretty Literal # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Literal NodeInfo -> Printer () #
Pretty Match # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Match NodeInfo -> Printer () #
Pretty Module # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Module NodeInfo -> Printer () #
Pretty ModuleHead # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ModuleHead NodeInfo -> Printer () #
Pretty ModuleName # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ModuleName NodeInfo -> Printer () #
Pretty ModulePragma # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ModulePragma NodeInfo -> Printer () #
Pretty Name # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Name NodeInfo -> Printer () #
Pretty Op # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Op NodeInfo -> Printer () #
Pretty Overlap # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Overlap NodeInfo -> Printer () #
Pretty PXAttr # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: PXAttr NodeInfo -> Printer () #
Pretty Pat # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Pat NodeInfo -> Printer () #
Pretty PatField # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: PatField NodeInfo -> Printer () #
Pretty Promoted # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Promoted NodeInfo -> Printer () #
Pretty QName # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: QName NodeInfo -> Printer () #
Pretty QOp # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: QOp NodeInfo -> Printer () #
Pretty QualConDecl # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: QualConDecl NodeInfo -> Printer () #
Pretty QualStmt # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: QualStmt NodeInfo -> Printer () #
Pretty RPat # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: RPat NodeInfo -> Printer () #
Pretty ResultSig # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: ResultSig NodeInfo -> Printer () #
Pretty Rhs # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Rhs NodeInfo -> Printer () #
Pretty Rule # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Rule NodeInfo -> Printer () #
Pretty RuleVar # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: RuleVar NodeInfo -> Printer () #
Pretty Safety # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Safety NodeInfo -> Printer () #
Pretty Splice # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Splice NodeInfo -> Printer () #
Pretty Stmt # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Stmt NodeInfo -> Printer () #
Pretty TyVarBind # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: TyVarBind NodeInfo -> Printer () #
Pretty Type # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Type NodeInfo -> Printer () #
Pretty TypeEqn # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: TypeEqn NodeInfo -> Printer () #
Pretty Unpackedness # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: Unpackedness NodeInfo -> Printer () #
Pretty WarningText # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: WarningText NodeInfo -> Printer () #
Pretty XAttr # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: XAttr NodeInfo -> Printer () #
Pretty XName # |
Instance details Defined in Floskell.Pretty Methods prettyPrint :: XName NodeInfo -> Printer () #

pretty :: (Annotated ast, Pretty ast) => ast NodeInfo -> Printer () #

Pretty print a syntax tree with annotated comments