hdirect-0.21.0: An IDL compiler for Haskell
GetOpt
data Opt a b Source
Constructors
Instances
pushArg :: String -> Opt a ()Source
updState :: (a -> a) -> Opt a ()Source
failed :: Opt a bSource
catchOpt :: Opt a b -> Opt a b -> Opt a bSource
prefixMatch :: String -> Opt a StringSource
prefixed :: String -> Opt a b -> Opt a bSource
matches :: (String -> Bool) -> (String -> Opt a b) -> Opt a bSource
flag :: String -> (a -> a) -> Opt a ()Source
flags :: [(String, a -> a)] -> Opt a ()Source
opts :: [Opt a b] -> Opt a bSource
orOpt :: Opt a b -> Opt a b -> Opt a bSource
thenOpt :: Opt a b -> Opt a b -> Opt a bSource
toggle :: String -> String -> String -> (Bool -> a -> a) -> Opt a ()Source
toggles :: String -> String -> [(String, Bool -> a -> a)] -> Opt a ()Source
prefixArg :: String -> (String -> a -> a) -> Opt a ()Source
optionArg :: String -> (String -> Opt a b) -> Opt a bSource
optionWithOptArg :: String -> Opt a b -> Opt a bSource
string :: String -> Opt a ()Source
(-=) :: String -> a -> Opt [a] ()Source
(-==) :: String -> (String -> a) -> Opt [a] ()Source
(-===) :: String -> (String -> a) -> Opt [a] ()Source
(-====) :: String -> (Maybe String -> a) -> Opt [a] ()Source
(-?) :: (String -> Bool) -> (String -> a) -> Opt [a] ()Source
getOpts :: Opt a b -> a -> [String] -> ([String], a)Source