ghc-exactprint-0.1.0.0: ExactPrint for GHC

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.GHC.ExactPrint

Description

Based on -------------------------------------------------------------------------- Module : Language.Haskell.Exts.Annotated.ExactPrint Copyright : (c) Niklas Broberg 2009 License : BSD-style (see the file LICENSE.txt)

Maintainer : Niklas Broberg, d00nibro@chalmers.se Stability : stable Portability : portable

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 => Located ast -> [Comment] -> String Source

Print an AST exactly as specified by the annotations on the nodes in the tree. exactPrint :: (ExactP ast) => ast -> [Comment] -> String

class Data ast => ExactP ast Source

Minimal complete definition

exactP

Instances

ExactP DocDecl Source 
ExactP HsIPName Source 
ExactP HsLit Source 
ExactP RdrName Source 
ExactP HsDocString Source 
ExactP Safety Source 
ExactP CExportSpec Source 
ExactP CCallConv Source 
ExactP CType Source 
ExactP WarningTxt Source 
ExactP OverlapMode Source 
ExactP FastString Source 
ExactP ModuleName Source 
ExactP [LConDecl RdrName] Source 
ExactP [LConDeclField RdrName] Source 
ExactP [LImportDecl RdrName] Source 
ExactP [LIE RdrName] Source 
ExactP (Maybe Role) Source 
ExactP (HsModule RdrName) Source 
ExactP (HsTupArg RdrName) Source 
ExactP (HsCmdTop RdrName) Source 
ExactP (HsDecl RdrName) Source 
ExactP (SpliceDecl RdrName) Source 
ExactP (TyClDecl RdrName) Source 
ExactP (FamilyDecl RdrName) Source 
ExactP (ConDecl RdrName) Source 
ExactP (TyFamInstEqn RdrName) Source 
ExactP (TyFamDefltEqn RdrName) Source 
ExactP (TyFamInstDecl RdrName) Source 
ExactP (DataFamInstDecl RdrName) Source 
ExactP (ClsInstDecl RdrName) Source 
ExactP (InstDecl RdrName) Source 
ExactP (DerivDecl RdrName) Source 
ExactP (DefaultDecl RdrName) Source 
ExactP (ForeignDecl RdrName) Source 
ExactP (RuleDecls RdrName) Source 
ExactP (RuleDecl RdrName) Source 
ExactP (RuleBndr RdrName) Source 
ExactP (VectDecl RdrName) Source 
ExactP (WarnDecls RdrName) Source 
ExactP (WarnDecl RdrName) Source 
ExactP (AnnDecl RdrName) Source 
ExactP (RoleAnnotDecl RdrName) Source 
ExactP (HsLocalBinds RdrName) Source 
ExactP (HsBind RdrName) Source 
ExactP (IPBind RdrName) Source 
ExactP (Sig RdrName) Source 
ExactP (HsQuasiQuote RdrName) Source 
ExactP (HsContext RdrName) Source 
ExactP (HsTyVarBndr RdrName) Source 
ExactP (HsType RdrName) Source 
ExactP (HsType Name) Source 
ExactP (ConDeclField RdrName) Source 
ExactP (HsOverLit RdrName) Source 
ExactP (HsExpr RdrName) Source 
ExactP (HsCmd RdrName) Source 
ExactP (Pat RdrName) Source 
ExactP (FunDep (Located RdrName)) Source 
ExactP (ImportDecl RdrName) Source 
ExactP (IE RdrName) Source 
ExactP (ResTyGADTHook RdrName) Source 
ExactP body => ExactP (Match RdrName (Located body)) Source 
ExactP body => ExactP (GRHS RdrName (Located body)) Source 
ExactP body => ExactP (Stmt RdrName (Located body)) Source 
ExactP arg => ExactP (HsRecField RdrName (Located arg)) Source