Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- annotateAST :: Located (HsModule RdrName) -> ApiAnns -> Anns
- type Anns = (AnnsEP, AnnsFinal)
- exactPrintAnnotated :: Located (HsModule RdrName) -> ApiAnns -> String
- exactPrintAnnotation :: ExactP ast => Located ast -> [Comment] -> Anns -> String
- exactPrint :: ExactP ast => Located ast -> [Comment] -> String
- class Data ast => ExactP ast
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
exactP