Module "AbstractCurryPrinter.curry"

A pretty printer for AbstractCurry programs.
This library defines a function "showProg" that shows an AbstractCurry program in standard Curry syntax.

Author: Martin Engelke, Bernd Brassel, Michael Hanus, Marion Mueller, Parissa Sadeghi

Version: February 2009


 Exported names:

Functions:
showExpr | showFuncDecl | showPattern | showProg | showTypeDecl | showTypeDecls | showTypeExpr


 Summary of exported functions:

showProg  :: CurryProg -> String  deterministic flexible+rigid
          Shows an AbstractCurry program in standard Curry syntax.
showTypeDecls  :: [CTypeDecl] -> String  deterministic rigid
          Shows a list of AbstractCurry type declarations in standard Curry syntax.
showTypeDecl  :: CTypeDecl -> String  deterministic flexible
          Shows an AbstractCurry type declaration in standard Curry syntax.
showTypeExpr  :: Bool -> CTypeExpr -> String  deterministic flexible+rigid
          Shows an AbstractCurry type expression in standard Curry syntax.
showFuncDecl  :: CFuncDecl -> String  deterministic 
          Shows an AbstractCurry function declaration in standard Curry syntax.
showExpr  :: CExpr -> String  deterministic 
          Shows an AbstractCurry expression in standard Curry syntax.
showPattern  :: CPattern -> String  deterministic flexible+rigid
          

 Imported modules:

AbstractCurry
Char
FiniteMap
List
Maybe
Prelude
Sort
Read

 Exported datatypes:


 Exported functions:

showProg :: CurryProg -> String  deterministic flexible+rigid

Shows an AbstractCurry program in standard Curry syntax. The export list contains the public functions and the types with their data constructors (if all data constructors are public), otherwise only the type constructors. The potential comments in function declarations are formatted as documentation comments.


showTypeDecls :: [CTypeDecl] -> String  deterministic rigid

Shows a list of AbstractCurry type declarations in standard Curry syntax.


showTypeDecl :: CTypeDecl -> String  deterministic flexible

Shows an AbstractCurry type declaration in standard Curry syntax.


showTypeExpr :: Bool -> CTypeExpr -> String  deterministic flexible+rigid

Shows an AbstractCurry type expression in standard Curry syntax. If the first argument is True, the type expression is enclosed in brackets.

Further infos:
  • incompletely defined

showFuncDecl :: CFuncDecl -> String  deterministic 

Shows an AbstractCurry function declaration in standard Curry syntax.


showExpr :: CExpr -> String  deterministic 

Shows an AbstractCurry expression in standard Curry syntax.


showPattern :: CPattern -> String  deterministic flexible+rigid

Further infos:
  • incompletely defined


Generated by CurryDoc (Version 0.4.1 of June 7, 2007) at Jun 16 17:27:32 2009