This library defines I/O actions to read and write type-annotated FlatCurry programs.
Author: Michael Hanus
Version: December 2024
typeAnnotatedFlatCurryFileName
:: String -> String
Transforms a name of a Curry program (with or without suffix ".curry" or ".lcurry") into the name of the file containing the corresponding type-annotated FlatCurry program. |
typeAnnotatedFlatCurryFilePath
:: String -> IO String
Gets the standard type-annotated FlatCurry file location for a given Curry module name. |
readTypeAnnotatedFlatCurry
:: String -> IO (AProg TypeExpr)
I/O action which parses a Curry program and returns the corresponding type-annotated FlatCurry program. |
readTypeAnnotatedFlatCurryWithParseOptions
:: String -> FrontendParams -> IO (AProg TypeExpr)
I/O action which parses a Curry program with respect to some parser options and returns the corresponding FlatCurry program. |
readTypeAnnotatedFlatCurryFile
:: String -> IO (AProg TypeExpr)
Reads a type-annotated FlatCurry program from a file in .afcy
format
where the file name is provided as the argument.
|
writeTypeAnnotatedFlatCurry
:: AProg TypeExpr -> IO ()
Writes a type-annotated FlatCurry program into a file in .afcy
format.
|
writeTypeAnnotatedFlatCurryFile
:: String -> AProg TypeExpr -> IO ()
Writes a type-annotated FlatCurry program into a file in ".afcy" format. |
Transforms a name of a Curry program (with or without suffix ".curry" or ".lcurry") into the name of the file containing the corresponding type-annotated FlatCurry program. |
Gets the standard type-annotated FlatCurry file location for a given Curry module name. The Curry source program must exist in the Curry load path, otherwise an error is raised. |
I/O action which parses a Curry program and returns the corresponding type-annotated FlatCurry program. The argument is the module path (without suffix ".curry" or ".lcurry") and the result is a type-annotated FlatCurry term representing this program. |
I/O action which parses a Curry program
with respect to some parser options and returns the
corresponding FlatCurry program.
This I/O action is used by
|
Reads a type-annotated FlatCurry program from a file in |
Writes a type-annotated FlatCurry program into a file in |
Writes a type-annotated FlatCurry program into a file in ".afcy" format.
The first argument must be the name of the target file
(with suffix |