haskell-src-exts-1.23.1: Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Copyright (c) Niklas Broberg 2009
License BSD-style (see the file LICENSE.txt)
Maintainer Niklas Broberg, d00nibro@chalmers.se
Stability stable
Portability portable
Safe Haskell Safe-Inferred
Language Haskell98

Language.Haskell.Exts.ExactPrint

Description

Exact-printer for Haskell abstract syntax. The input is a (semi-concrete) abstract syntax tree, annotated with exact source information to enable printing the tree exactly as it was parsed.

Synopsis

Documentation

exactPrint :: ExactP ast => ast SrcSpanInfo -> [ Comment ] -> String Source #

Print an AST exactly as specified by the annotations on the nodes in the tree.

class Annotated ast => ExactP ast Source #

Minimal complete definition

exactP

Instances

Instances details
ExactP Alt Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Alt SrcSpanInfo -> EP ()

ExactP FieldUpdate Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP QualStmt Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Stmt Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Stmt SrcSpanInfo -> EP ()

ExactP PatField Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP RPat Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: RPat SrcSpanInfo -> EP ()

ExactP RPatOp Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP PXAttr Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Pat Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Pat SrcSpanInfo -> EP ()

ExactP WarningText Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP RuleVar Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Rule Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Rule SrcSpanInfo -> EP ()

ExactP Activation Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Overlap Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ModulePragma Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP CallConv Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Safety Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Splice Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Bracket Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP XAttr Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP XName Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Exp Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Exp SrcSpanInfo -> EP ()

ExactP Sign Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Sign SrcSpanInfo -> EP ()

ExactP Literal Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Asst Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Asst SrcSpanInfo -> EP ()

ExactP Context Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP FunDep Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP TyVarBind Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Promoted Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP MaybePromotedName Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Type Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Type SrcSpanInfo -> EP ()

ExactP GuardedRhs Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Rhs Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Rhs SrcSpanInfo -> EP ()

ExactP Unpackedness Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP BangType Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP InstDecl Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ClassDecl Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP GadtDecl Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP FieldDecl Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ConDecl Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP QualConDecl Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Match Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP IPBind Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Binds Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP DerivStrategy Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Deriving Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP InstHead Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP InstRule Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP DeclHead Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ResultSig Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP InjectivityInfo Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP DataOrNew Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Role Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Role SrcSpanInfo -> EP ()

ExactP BooleanFormula Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Annotation Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP TypeEqn Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Decl Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Decl SrcSpanInfo -> EP ()

ExactP Assoc Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ImportSpec Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ImportSpecList Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ImportDecl Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Namespace Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ExportSpec Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ExportSpecList Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ModuleHead Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Module Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP CName Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Op Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Op SrcSpanInfo -> EP ()

ExactP QOp Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: QOp SrcSpanInfo -> EP ()

ExactP IPName Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP Name Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

Methods

exactP :: Name SrcSpanInfo -> EP ()

ExactP QName Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP SpecialCon Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint

ExactP ModuleName Source #
Instance details

Defined in Language.Haskell.Exts.ExactPrint