| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.DocTest.Internal.Options
Synopsis
- usage :: String
- version :: String
- ghcVersion :: String
- versionInfo :: String
- info :: String
- data Result a
- type Warning = String
- type ModuleName = String
- data Config = Config {
- cfgLogLevel :: LogLevel
- cfgModules :: [ModuleName]
- cfgThreads :: Maybe Int
- cfgModuleConfig :: ModuleConfig
- cfgNix :: Bool
- cfgGhcArgs :: [String]
- 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
- parseGhcArg :: String -> Maybe String
- parseSeed :: String -> Maybe Int
- parseLogLevel :: String -> Maybe LogLevel
- parseThreads :: String -> Maybe Int
- parseSpecificFlag :: String -> String -> Maybe String
- parseFlag :: String -> (String, Maybe String)
Documentation
ghcVersion :: String Source #
versionInfo :: String Source #
Constructors
| ResultStderr String | |
| ResultStdout String | |
| Result a |
type ModuleName = String Source #
Constructors
| Config | |
Fields
| |
Instances
data ModuleConfig Source #
Constructors
| ModuleConfig | |
Fields
| |
Instances
| NFData ModuleConfig Source # | |||||
Defined in Test.DocTest.Internal.Options Methods rnf :: ModuleConfig -> () Source # | |||||
| Generic ModuleConfig Source # | |||||
Defined in Test.DocTest.Internal.Options Associated Types
Methods from :: ModuleConfig -> Rep ModuleConfig x Source # to :: Rep ModuleConfig x -> ModuleConfig Source # | |||||
| Show ModuleConfig Source # | |||||
Defined in Test.DocTest.Internal.Options | |||||
| Eq ModuleConfig Source # | |||||
Defined in Test.DocTest.Internal.Options Methods (==) :: ModuleConfig -> ModuleConfig -> Bool Source # (/=) :: ModuleConfig -> ModuleConfig -> Bool Source # | |||||
| type Rep ModuleConfig Source # | |||||
Defined in Test.DocTest.Internal.Options type Rep ModuleConfig = D1 ('MetaData "ModuleConfig" "Test.DocTest.Internal.Options" "doctest-parallel-0.4-Ku6xlKqGqCgHDSZeb8KTkx" 'False) (C1 ('MetaCons "ModuleConfig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cfgPreserveIt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cfgRandomizeOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cfgSeed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "cfgImplicitModuleImport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) | |||||
parseLocatedModuleOptions :: ModuleName -> ModuleConfig -> [Located String] -> Either (Location, String) ModuleConfig Source #
parseModuleOption :: ModuleConfig -> String -> Maybe ModuleConfig Source #
parseGhcArg :: String -> Maybe String Source #
Parse ghc-arg argument
>>>parseGhcArg "--ghc-arg=foobar"Just "foobar"
parseSeed :: String -> Maybe Int Source #
Parse seed argument
>>>parseSeed "--seed=6"Just 6>>>parseSeed "--seeeed=6"Nothing
parseLogLevel :: String -> Maybe LogLevel Source #
Parse seed argument
>>>parseLogLevel "--log-level=Debug"Just Debug>>>parseLogLevel "--log-level=debug"Just Debug>>>parseSeed "---log-level=debug"Nothing
parseThreads :: String -> Maybe Int Source #
Parse number of threads argument
>>>parseThreads "-j6"Just 6>>>parseThreads "-j-2"Nothing>>>parseThreads "-jA"Nothing