| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Config.Dyre.Params
Description
Synopsis
- data Params cfgType a = Params {
- projectName :: String
- configCheck :: Bool
- configDir :: Maybe (IO FilePath)
- cacheDir :: Maybe (IO FilePath)
- realMain :: cfgType -> IO a
- showError :: cfgType -> String -> cfgType
- includeDirs :: [FilePath]
- hidePackages :: [String]
- ghcOpts :: [String]
- forceRecomp :: Bool
- statusOut :: String -> IO ()
- rtsOptsHandling :: RTSOptionHandling
- includeCurrentDirectory :: Bool
- data RTSOptionHandling
- = RTSReplace [String]
- | RTSAppend [String]
Documentation
data Params cfgType a Source #
This structure is how all kinds of useful data is fed into Dyre. Of
course, only the projectName, realMain, and showError fields
are really necessary. By using the set of default values provided
as newParams, you can get all the benefits of
using Dyre to configure your program in only five or six lines of
code.
Constructors
| Params | |
Fields
| |
data RTSOptionHandling Source #
Specify additional or replacement GHC runtime system options
Constructors
| RTSReplace [String] | replaces RTS options with given list |
| RTSAppend [String] | merges given list with RTS options from command line (so that nothing is lost) |