Safe Haskell | None |
---|---|
Language | Haskell2010 |
Wrappers for generating prologue and epilogue code in Haskell.
Synopsis
- writeHaskellModule :: FilePath -> Text -> HashMap Text Type -> IO ()
- runHaskellModule :: FilePath -> [String] -> IO ExitCode
- runHaskellModuleStrict :: FilePath -> [String] -> IO ExitCode
- defaultHaskellFilename :: FilePath
- importedModules :: [ModuleImport]
- requiredPackages :: [Text]
- generateModuleImports :: [ModuleImport] -> Text
- type ModuleImport = Text
Documentation
writeHaskellModule :: FilePath -> Text -> HashMap Text Type -> IO () Source #
Write a Haskell module to an output file, or stdout if -
filename is given.
runHaskellModule :: FilePath -> [String] -> IO ExitCode Source #
Function to run Haskell module
FIXME: just rely on `run-haskell-module` exports
runHaskellModuleStrict :: FilePath -> [String] -> IO ExitCode Source #
Run Haskell module with strict warning options (each warning is an error)
defaultHaskellFilename :: FilePath Source #
Default output filname is used, when there is no explicit output file path, or it is "-" (stdout). Default module name is consistent with it.
importedModules :: [ModuleImport] Source #
List of modules to import
requiredPackages :: [Text] Source #
List of packages required by modules below. Keep and maintain together.
generateModuleImports :: [ModuleImport] -> Text Source #
Given a list of imports, generate source code.
type ModuleImport = Text Source #
Alias for indicating that this is item in module imports list.