Module "FlatCurryShow.curry"

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:

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

 Imported modules:

Char
FlatCurry
List
Prelude

 Exported datatypes:


 Exported functions:

showFlatProg :: Prog -> String  deterministic flexible+rigid

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


showFlatType :: TypeDecl -> String  deterministic flexible


showFlatFunc :: FuncDecl -> String  deterministic flexible


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

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

showCurryVar :: a -> String  deterministic 


showCurryId :: String -> String  deterministic rigid

Shows an identifier in Curry form. Thus, operators are enclosed in brackets.

Further infos:
  • incompletely defined


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