Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
CabalGild.Unstable.Type.Flag
Synopsis
- data Flag
- options :: [OptDescr Flag]
- crlfOption :: String
- inputOption :: String
- ioOption :: String
- modeOption :: String
- outputOption :: String
- stdinOption :: String
- fromArguments :: MonadThrow m => [String] -> m [Flag]
- detectDuplicateOptions :: MonadThrow m => [Flag] -> m ()
Documentation
A flag, which represents a command line option. The values associated with the flags are typically not parsed. These just handle the structure of command line options.
crlfOption :: String Source #
inputOption :: String Source #
modeOption :: String Source #
stdinOption :: String Source #
fromArguments :: MonadThrow m => [String] -> m [Flag] Source #
Converts a list of command line arguments into a list of flags. If there are any unexpected arguments, invalid options, or unknown options, an exception will be thrown.
detectDuplicateOptions :: MonadThrow m => [Flag] -> m () Source #