This module contains helper functions for dealing with AbstractCurry. In particular, it contains functions that can read modules from a package and its dependencies with all dependencies available to the Curry frontend.
loadPathForPackage
:: Package -> String -> [Package] -> [String]
Returns the load path for a package stored in some directory w.r.t. |
readAbstractCurryFromPackagePath
:: Package -> String -> [Package] -> String -> IO CurryProg
Reads an AbstractCurry module from a package. |
readAbstractCurryFromDeps
:: String -> [Package] -> String -> ErrorLogger CurryProg
Reads an AbstractCurry module from a package or one of its dependencies. |
transformAbstractCurryInDeps
:: String -> [Package] -> (CurryProg -> CurryProg) -> String -> String -> ErrorLogger ()
Applies a transformation function to a module from a package or one of its dependencies and writes the modified module to a file in Curry form. |
applyModuleRenames
:: [(String,String)] -> CurryProg -> CurryProg
Renames all references to some modules in a Curry program. |
Returns the load path for a package stored in some directory w.r.t. the dependent packages.
|
Reads an AbstractCurry module from a package.
|
Reads an AbstractCurry module from a package or one of its dependencies.
|
Applies a transformation function to a module from a package or one of its dependencies and writes the modified module to a file in Curry form.
|
Renames all references to some modules in a Curry program.
|