Safe Haskell | Safe-Inferred |
---|
- data OptParser opt
- success :: (opt -> opt) -> OptParser opt
- parseOptions :: [OptDescr (OptParser opt)] -> [String] -> Either [String] (opt -> opt)
- data Opts = Opts {}
- initialOpts :: Opts
- setStdOut :: OptParser Opts
- setIncludeDir :: String -> OptParser Opts
- setSrcDir :: String -> OptParser Opts
- setDeps :: String -> OptParser Opts
- setDepPrefix :: String -> OptParser Opts
- setRtIncludeDir :: String -> OptParser Opts
- setConstFold :: OptParser Opts
- setOverflow :: OptParser Opts
- setDivZero :: OptParser Opts
- setIxCheck :: OptParser Opts
- setFpCheck :: OptParser Opts
- setProcSyms :: OptParser Opts
- setCfg :: OptParser Opts
- setCfgDotDir :: String -> OptParser Opts
- addCfgProc :: String -> OptParser Opts
- setVerbose :: OptParser Opts
- setHelp :: OptParser Opts
- options :: [OptDescr (OptParser Opts)]
- parseOpts :: [String] -> IO Opts
- printUsage :: [String] -> IO ()
Documentation
success :: (opt -> opt) -> OptParser optSource
Option parser succeeded, use this function to transform the default options.
parseOptions :: [OptDescr (OptParser opt)] -> [String] -> Either [String] (opt -> opt)Source
Option parser failed, emit this message.
XXX currently not used. invalid :: String -> OptParser opt invalid msg = Error [msg]
Yield either a list of errors, or a function to produce an options structure, given a set of default options. Discard any non-options.
Opts | |
|
addCfgProc :: String -> OptParser OptsSource
printUsage :: [String] -> IO ()Source