Safe Haskell | None |
---|
- cmdLoadFromFile :: Config -> Maybe String -> [FilePath] -> FilePath -> ErrorT String IO ()
- cmdLoadSourceTetraFromFile :: Config -> FilePath -> ErrorT String IO ()
- cmdLoadSourceTetraFromString :: Config -> Source -> String -> ErrorT String IO ()
- cmdLoadCoreFromFile :: Config -> Language -> FilePath -> ErrorT String IO ()
- cmdLoadCoreFromString :: Config -> Language -> Source -> String -> ErrorT String IO ()
- cmdLoadSimplifier :: Config -> Language -> String -> [FilePath] -> ErrorT String IO Language
Documentation
:: Config | Driver config. |
-> Maybe String | Simplifier specification. |
-> [FilePath] | More modules to use as inliner templates. |
-> FilePath | Module file name. |
-> ErrorT String IO () |
Load and transform a module.
The result is printed to stdout
.
Any errors are thrown in the ErrorT
monad.
This function handle fragments of Disciple Core, as well as Source Tetra modules. The language to use is determined by inspecting the file name extension.
We also take the specification of a simplifier to apply to the module.
cmdLoadSourceTetraFromFileSource
Load a Disciple Source Tetra module from a file.
The result is printed to stdout
.
Any errors are thrown in the ErrorT
monad.
cmdLoadSourceTetraFromStringSource
:: Config | Driver config. |
-> Source | Source of the code. |
-> String | Program module text. |
-> ErrorT String IO () |
Load a Disciple Source Tetra module from a string.
The result is printed to stdout
.
Any errors are thrown in the ErrorT
monad.
:: Config | Driver config. |
-> Language | Core language definition. |
-> FilePath | Module file path |
-> ErrorT String IO () |
Load a Disciple Core module from a file.
The result is printed to stdout
.
:: Config | Driver config. |
-> Language | Language definition |
-> Source | Source of the code. |
-> String | Program module text. |
-> ErrorT String IO () |
Load a Disciple Core module from a string.
The result it printed to stdout
.