Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- usage :: String
- version :: String
- ghcVersion :: String
- versionInfo :: String
- info :: String
- data Result a
- type Warning = String
- type ModuleName = String
- data Config = Config {
- cfgVerbose :: Bool
- cfgModules :: [ModuleName]
- cfgThreads :: Maybe Int
- cfgQuiet :: Bool
- cfgModuleConfig :: ModuleConfig
- cfgNix :: Bool
- data ModuleConfig = ModuleConfig {}
- defaultModuleConfig :: ModuleConfig
- defaultConfig :: Config
- parseLocatedModuleOptions :: ModuleName -> ModuleConfig -> [Located String] -> Either (Location, String) ModuleConfig
- parseModuleOption :: ModuleConfig -> String -> Maybe ModuleConfig
- parseOptions :: [String] -> Result Config
- parseSeed :: String -> Maybe Int
- parseThreads :: String -> Maybe Int
- parseSpecificFlag :: String -> String -> Maybe String
- parseFlag :: String -> (String, Maybe String)
Documentation
ghcVersion :: String Source #
versionInfo :: String Source #
type ModuleName = String Source #
Config | |
|
Instances
data ModuleConfig Source #
ModuleConfig | |
|
Instances
parseLocatedModuleOptions :: ModuleName -> ModuleConfig -> [Located String] -> Either (Location, String) ModuleConfig Source #
parseModuleOption :: ModuleConfig -> String -> Maybe ModuleConfig Source #
parseSeed :: String -> Maybe Int Source #
Parse seed argument
>>>
parseSeed "--seed=6"
Just 6>>>
parseSeed "--seeeed=6"
Nothing
parseThreads :: String -> Maybe Int Source #
Parse number of threads argument
>>>
parseThreads "-j6"
Just 6>>>
parseThreads "-j-2"
Nothing>>>
parseThreads "-jA"
Nothing