Copyright | (c) 1999 - 2004 Wolfgang Lux 2005 Martin Engelke 2011 - 2015 Björn Peemöller |
---|---|
License | BSD-3-clause |
Maintainer | bjp@informatik.uni-kiel.de |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Curry.Syntax.Pretty
Description
This module implements a pretty printer for Curry expressions. It was derived from the Haskell pretty printer provided in Simon Marlow's Haskell parser.
- ppModule :: Module -> Doc
- ppInterface :: Interface -> Doc
- ppIDecl :: IDecl -> Doc
- ppDecl :: Decl -> Doc
- ppIdent :: Ident -> Doc
- ppPattern :: Int -> Pattern -> Doc
- ppFieldPatt :: Field Pattern -> Doc
- ppExpr :: Int -> Expression -> Doc
- ppOp :: InfixOp -> Doc
- ppStmt :: Statement -> Doc
- ppFieldExpr :: Field Expression -> Doc
- ppTypeExpr :: Int -> TypeExpr -> Doc
- ppAlt :: Alt -> Doc
Documentation
ppInterface :: Interface -> Doc Source #
Pretty print an interface
ppFieldExpr :: Field Expression -> Doc Source #
Pretty print a record field expression (Haskell syntax)