This library defines I/O actions to read and write annotated FlatCurry programs.
Author: Michael Hanus
Version: December 2020
annotatedFlatCurryFileName
:: 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 annotated FlatCurry program. |
annotatedFlatCurryFilePath
:: String -> IO String
Gets the standard annotated FlatCurry file location for a given Curry module name. |
readAnnotatedFlatCurryFile
:: Read a => String -> IO (AProg a)
where the file name is provided as the argument. |
writeAnnotatedFlatCurry
:: Show a => AProg a -> IO ()
Writes an annotated FlatCurry program into a file in .afcy
format.
|
writeAnnotatedFlatCurryFile
:: Show a => String -> AProg a -> IO ()
Writes an 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 annotated FlatCurry program. |
Gets the standard 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. |
where the file name is provided as the argument. |
Writes an annotated FlatCurry program into a file in |
Writes an annotated FlatCurry program into a file in ".afcy" format.
The first argument must be the name of the target file
(with suffix |