Copyright | (c) 2015 Björn Peemöller |
---|---|
License | BSD-3-clause |
Maintainer | bjp@informatik.uni-kiel.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
This module implements a pretty printer for FlatCurry modules.
Synopsis
- ppProg :: Prog -> Doc
- ppHeader :: String -> [TypeDecl] -> [FuncDecl] -> Doc
- ppExports :: [TypeDecl] -> [FuncDecl] -> Doc
- ppImport :: String -> Doc
- ppTypeDecl :: TypeDecl -> Doc
- ppTypeExpr :: Int -> TypeExpr -> Doc
- ppFuncDecl :: FuncDecl -> Doc
- ppExpr :: Int -> Expr -> Doc
- ppLiteral :: Literal -> Doc
- ppOpDecl :: OpDecl -> Doc
Documentation
ppTypeDecl :: TypeDecl -> Doc Source #
pretty-print a type declaration
ppFuncDecl :: FuncDecl -> Doc Source #
pretty-print a function declaration