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
- 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
Eq Config Source # | |
Show Config Source # | |
Generic Config Source # | |
NFData Config Source # | |
Defined in Test.DocTest.Internal.Options | |
type Rep Config Source # | |
Defined in Test.DocTest.Internal.Options type Rep Config = D1 ('MetaData "Config" "Test.DocTest.Internal.Options" "doctest-parallel-0.2.4-inplace" 'False) (C1 ('MetaCons "Config" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cfgVerbose") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgModules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ModuleName])) :*: (S1 ('MetaSel ('Just "cfgThreads") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "cfgQuiet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgModuleConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ModuleConfig))))) |
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