Some tools to support meta-programming in Curry based on FlatCurry.
This library contains
Author: Michael Hanus
Version: February 2002
| Exported names: |
Functions:
showCurryExpr
| showCurryType
| showCurryVar
| showFlatProg
| Summary of exported functions: |
|
||
|
||
|
||
|
| Imported modules: |
| Exported datatypes: |
| Exported functions: |
:: Prog -> String
Shows a FlatCurry program term as a string (with some pretty printing).
:: (String -> String) -> Bool -> TypeExpr -> String
Shows a FlatCurry type in Curry syntax.
Example call: (showCurryType trans nested texpr)
trans
- a translation function from internal to external names
nested
- True iff brackets must be written around complex types
texpr
- the FlatCurry type expression to be formatted
:: (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 internal to external 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