Some tools to show FlatCurry programs.
This library contains
Author: Michael Hanus
Version: December 2005
| Exported names: |
Functions:
showCurryExpr
| showCurryId
| showCurryType
| showCurryVar
| showFlatFunc
| showFlatProg
| showFlatType
| Summary of exported functions: |
|
||
|
||
|
||
|
||
|
||
|
||
|
| Imported modules: |
| Exported datatypes: |
| Exported functions: |
:: Prog -> String
Shows a FlatCurry program term as a string (with some pretty printing).
:: TypeDecl -> String
:: FuncDecl -> String
:: ((String,String) -> String) -> Bool -> TypeExpr -> String
Shows a FlatCurry type in Curry syntax.
Example call: (showCurryType trans nested texpr)
trans
- a translation function from qualified type names
to external type names
nested
- True iff brackets must be written around complex types
texpr
- the FlatCurry type expression to be formatted
:: ((String,String) -> String) -> Bool -> Int -> Expr -> String
Shows a FlatCurry expressions in (almost) Curry syntax.
Example call: (showCurryExpr trans nested indent expr)
trans
- a translation function from qualified functions names
to external function names
nested
- True iff brackets must be written around complex terms
indent
- the indentation used in case expressions and if-then-else
expr
- the FlatCurry expression to be formatted
:: a -> String
:: String -> String
Shows an identifier in Curry form. Thus, operators are enclosed in brackets.