Safe Haskell | None |
---|---|
Language | Haskell98 |
Configuring the compiler
- data Config
- defaultConfig :: Config
- defaultConfigWithSandbox :: IO Config
- configDirectoryIncludes :: Config -> [(Maybe String, FilePath)]
- configDirectoryIncludePaths :: Config -> [FilePath]
- nonPackageConfigDirectoryIncludePaths :: Config -> [FilePath]
- addConfigDirectoryInclude :: Maybe String -> FilePath -> Config -> Config
- addConfigDirectoryIncludes :: [(Maybe String, FilePath)] -> Config -> Config
- addConfigDirectoryIncludePaths :: [FilePath] -> Config -> Config
- configPackages :: Config -> [String]
- addConfigPackage :: String -> Config -> Config
- addConfigPackages :: [String] -> Config -> Config
- shouldExportStrictWrapper :: ModuleName a -> Config -> Bool
Documentation
Configuration of the compiler. The fields with a leading underscore
configDirectoryIncludes :: Config -> [(Maybe String, FilePath)] Source #
Reading _configDirectoryIncludes is safe to do.
configDirectoryIncludePaths :: Config -> [FilePath] Source #
Get all include directories without the package mapping.
nonPackageConfigDirectoryIncludePaths :: Config -> [FilePath] Source #
Get all include directories not included through packages.
addConfigDirectoryInclude :: Maybe String -> FilePath -> Config -> Config Source #
Add a mapping from (maybe) a package to a source directory
addConfigDirectoryIncludes :: [(Maybe String, FilePath)] -> Config -> Config Source #
Add several include directories.
addConfigDirectoryIncludePaths :: [FilePath] -> Config -> Config Source #
Add several include directories without package references.
configPackages :: Config -> [String] Source #
Reading _configPackages is safe to do.
shouldExportStrictWrapper :: ModuleName a -> Config -> Bool Source #
Should a strict wrapper be generated for this module?