Copyright | (c) 1999 - 2004 Wolfgang Lux 2005 Martin Engelke 2011 - 2015 Björn Peemöller 2016 Finn Teegen |
---|---|
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 Curry expressions. It was derived from the Haskell pretty printer provided in Simon Marlow's Haskell parser.
Synopsis
- ppModule :: Module a -> Doc
- ppInterface :: Interface -> Doc
- ppIDecl :: IDecl -> Doc
- ppDecl :: Decl a -> Doc
- ppIdent :: Ident -> Doc
- ppPattern :: Int -> Pattern a -> Doc
- ppFieldPatt :: Field (Pattern a) -> Doc
- ppExpr :: Int -> Expression a -> Doc
- ppOp :: InfixOp a -> Doc
- ppStmt :: Statement a -> Doc
- ppFieldExpr :: Field (Expression a) -> Doc
- ppQualTypeExpr :: QualTypeExpr -> Doc
- ppTypeExpr :: Int -> TypeExpr -> Doc
- ppKindExpr :: Int -> KindExpr -> Doc
- ppAlt :: Alt a -> Doc
- ppQIdent :: QualIdent -> Doc
- ppConstraint :: Constraint -> Doc
- ppInstanceType :: InstanceType -> Doc
- ppConstr :: ConstrDecl -> Doc
- ppNewConstr :: NewConstrDecl -> Doc
- ppFieldDecl :: FieldDecl -> Doc
- ppEquation :: Equation a -> Doc
- ppMIdent :: ModuleIdent -> Doc
Documentation
ppInterface :: Interface -> Doc Source #
Pretty print an interface
ppFieldExpr :: Field (Expression a) -> Doc Source #
Pretty print a record field expression (Haskell syntax)
ppQualTypeExpr :: QualTypeExpr -> Doc Source #
Pretty print a qualified type expression
ppConstraint :: Constraint -> Doc Source #
ppInstanceType :: InstanceType -> Doc Source #
ppConstr :: ConstrDecl -> Doc Source #
ppNewConstr :: NewConstrDecl -> Doc Source #
ppFieldDecl :: FieldDecl -> Doc Source #
ppEquation :: Equation a -> Doc Source #
ppMIdent :: ModuleIdent -> Doc Source #