Module "FlatTools.curry"

Some tools to support meta-programming in Curry based on FlatCurry.
This library contains


Note that the previously contained function "writeFLC" is no longer supported. Use Flat2Fcy.writeFCY instead and change file suffix into ".fcy"!

Author: Michael Hanus

Version: February 2002


 Exported names:

Functions:
showCurryExpr | showCurryType | showCurryVar | showFlatProg


 Summary of exported functions:

showFlatProg  :: Prog -> String  deterministic flexible+rigid
          Shows a FlatCurry program term as a string (with some pretty printing).
showCurryType  :: (String -> String) -> Bool -> TypeExpr -> String  deterministic flexible+rigid
          Shows a FlatCurry type in Curry syntax.
showCurryExpr  :: (String -> String) -> Bool -> Int -> Expr -> String  deterministic flexible+rigid
          Shows a FlatCurry expressions in (almost) Curry syntax.
showCurryVar  :: a -> String  deterministic 
          

 Imported modules:

Char
Flat
List
Prelude

 Exported datatypes:


 Exported functions:

showFlatProg :: Prog -> String  deterministic flexible+rigid

Shows a FlatCurry program term as a string (with some pretty printing).


showCurryType :: (String -> String) -> Bool -> TypeExpr -> String  deterministic flexible+rigid

Shows a FlatCurry type in Curry syntax.

Example call:  (showCurryType trans nested texpr)

Parameters:
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
Returns:
the String representation of the formatted type expression
Further infos:
  • incompletely defined

showCurryExpr :: (String -> String) -> Bool -> Int -> Expr -> String  deterministic flexible+rigid

Shows a FlatCurry expressions in (almost) Curry syntax.

Example call:  (showCurryExpr trans nested indent expr)

Parameters:
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
Returns:
the String representation of the formatted expression
Further infos:
  • incompletely defined

showCurryVar :: a -> String  deterministic 



Generated by CurryDoc (Version 0.4.1 of June 7, 2007) at Aug 28 15:38:26 2008