Safe Haskell | Safe-Infered |
---|
- defaultMain :: [Test] -> IO ()
- defaultMainWithArgs :: [Test] -> [String] -> IO ()
- defaultMainWithOpts :: [Test] -> RunnerOptions -> IO ()
- interpretArgs :: [String] -> IO (Either String (RunnerOptions, [String]))
- interpretArgsOrExit :: [String] -> IO RunnerOptions
Documentation
defaultMain :: [Test] -> IO ()Source
defaultMainWithArgs :: [Test] -> [String] -> IO ()Source
A version of defaultMain
that lets you ignore the command line arguments
in favour of another list of String
s.
defaultMainWithOpts :: [Test] -> RunnerOptions -> IO ()Source
A version of defaultMain
that lets you ignore the command line arguments
in favour of an explicit set of RunnerOptions
.
interpretArgs :: [String] -> IO (Either String (RunnerOptions, [String]))Source
Parse the specified command line arguments into a RunnerOptions
and some remaining arguments,
or return a reason as to why we can't.
interpretArgsOrExit :: [String] -> IO RunnerOptionsSource
A version of interpretArgs
that ends the process if it fails.