Portability | GHC-only |
---|---|
Stability | experimental |
Maintainer | Ivaylo Dobrikov (me@dobrikov.biz) |
This module defines functions for pretty-printing the Abstract Syntax Tree to CSPM syntax.
- class PP x where
- prettyPrintFile :: FilePath -> IO ()
- toPrettyString :: Module a -> String
Documentation
The pretty print class used for AST types
prettyPrintFile :: FilePath -> IO ()Source
run the pretty printer on a file and write the output to | filename.ast and filename.pretty
toPrettyString :: Module a -> StringSource