Safe Haskell | None |
---|---|
Language | Haskell98 |
Command-line parser
This is an abstract command-line parser used by both StaticFlags and DynFlags.
(c) The University of Glasgow 2005
Documentation
processArgs :: Monad m => [Flag m] -> [Located String] -> m ([Located String], [Located String], [Located String])Source
NoArg (EwM m ()) | |
HasArg (String -> EwM m ()) | |
SepArg (String -> EwM m ()) | |
Prefix (String -> EwM m ()) | |
OptPrefix (String -> EwM m ()) | |
OptIntSuffix (Maybe Int -> EwM m ()) | |
IntSuffix (Int -> EwM m ()) | |
FloatSuffix (Float -> EwM m ()) | |
PassFlag (String -> EwM m ()) | |
AnySuffix (String -> EwM m ()) | |
PrefixPred (String -> Bool) (String -> EwM m ()) | |
AnySuffixPred (String -> Bool) (String -> EwM m ()) | |
VersionSuffix (Int -> Int -> EwM m ()) |
CmdLineP | |
|
getCmdLineState :: CmdLineP s sSource
putCmdLineState :: s -> CmdLineP s ()Source