Module Opts

Summary of exported operations:

getCheckOpts :: IO (Options,[String],[String])   
options :: [OptDescr ((Options,[String]) -> (Options,[String]))]   
colors :: [(ColMode,String,String)]   
verbosities :: [(Verbosity,String,String)]   
defaultOptions :: Options   
onOpts :: (Options -> Options) -> (Options,[String]) -> (Options,[String])   
addErr :: String -> (Options,[String]) -> (Options,[String])   
mkOptDescr :: ((a -> a) -> (Options,[String]) -> (Options,[String])) -> String -> [String] -> String -> String -> [(String,String,a -> a)] -> OptDescr ((Options,[String]) -> (Options,[String]))   
parseOptErr :: ((a -> a) -> (Options,[String]) -> (Options,[String])) -> String -> [(String,String,a -> a)] -> String -> (Options,[String]) -> (Options,[String])   
renderOptErrTable :: [(String,String,a -> a)] -> String   
verbDescriptions :: [(String,String,Options -> Options)]   
colDescriptions :: [(String,String,Options -> Options)]   
parseOpts :: [String] -> (Options,[String],[String])   
updateOpts :: Options -> [String] -> (Options,[String],[String])   
usage :: String -> String   

Exported datatypes:


Options

Constructors:


ColMode

Constructors:

  • ColOn :: ColMode
  • ColOff :: ColMode
  • ColAuto :: ColMode

Mode

Constructors:

  • ModeHelp :: Mode
  • ModeVersion :: Mode
  • ModeCheck :: Mode

Verbosity

Constructors:

  • VerbQuiet :: Verbosity
  • VerbStatus :: Verbosity
  • VerbDebug :: Verbosity

OptErr

Type synonym: OptErr = (Options,[String])


OptErrTable

Type synonym: OptErrTable a = [(String,String,a -> a)]


Exported operations:

getCheckOpts :: IO (Options,[String],[String])   

options :: [OptDescr ((Options,[String]) -> (Options,[String]))]   

colors :: [(ColMode,String,String)]   

Further infos:
  • solution complete, i.e., able to compute all solutions

verbosities :: [(Verbosity,String,String)]   

Further infos:
  • solution complete, i.e., able to compute all solutions

defaultOptions :: Options   

Further infos:
  • solution complete, i.e., able to compute all solutions

onOpts :: (Options -> Options) -> (Options,[String]) -> (Options,[String])   

addErr :: String -> (Options,[String]) -> (Options,[String])   

Further infos:
  • solution complete, i.e., able to compute all solutions

mkOptDescr :: ((a -> a) -> (Options,[String]) -> (Options,[String])) -> String -> [String] -> String -> String -> [(String,String,a -> a)] -> OptDescr ((Options,[String]) -> (Options,[String]))   

parseOptErr :: ((a -> a) -> (Options,[String]) -> (Options,[String])) -> String -> [(String,String,a -> a)] -> String -> (Options,[String]) -> (Options,[String])   

renderOptErrTable :: [(String,String,a -> a)] -> String   

verbDescriptions :: [(String,String,Options -> Options)]   

colDescriptions :: [(String,String,Options -> Options)]   

parseOpts :: [String] -> (Options,[String],[String])   

updateOpts :: Options -> [String] -> (Options,[String],[String])   

usage :: String -> String