Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Documentation
Instances
Functor p => Functor (Annotated d p) Source # | |
(Monoid d, Applicative p) => Applicative (Annotated d p) Source # | |
Defined in Jukebox.Options pure :: a -> Annotated d p a # (<*>) :: Annotated d p (a -> b) -> Annotated d p a -> Annotated d p b # liftA2 :: (a -> b -> c) -> Annotated d p a -> Annotated d p b -> Annotated d p c # (*>) :: Annotated d p a -> Annotated d p b -> Annotated d p b # (<*) :: Annotated d p a -> Annotated d p b -> Annotated d p a # | |
(Semigroup d, Semigroup (p a)) => Semigroup (Annotated d p a) Source # | |
(Semigroup d, Monoid d, Semigroup (p a), Monoid (p a)) => Monoid (Annotated d p a) Source # | |
argOptionWith :: String -> String -> String -> [String] -> (String -> Maybe a) -> ArgParser a Source #
flagExpert :: Flag -> Bool Source #
data ParseResult a Source #
Instances
Functor ParseResult Source # | |
Defined in Jukebox.Options fmap :: (a -> b) -> ParseResult a -> ParseResult b # (<$) :: a -> ParseResult b -> ParseResult a # | |
Applicative ParseResult Source # | |
Defined in Jukebox.Options pure :: a -> ParseResult a # (<*>) :: ParseResult (a -> b) -> ParseResult a -> ParseResult b # liftA2 :: (a -> b -> c) -> ParseResult a -> ParseResult b -> ParseResult c # (*>) :: ParseResult a -> ParseResult b -> ParseResult b # (<*) :: ParseResult a -> ParseResult b -> ParseResult a # |
primFlag :: String -> [String] -> (String -> Bool) -> (a -> a -> Either Error a) -> a -> ArgParser (String -> a) -> OptionParser a Source #
filenames :: OptionParser [String] Source #
io :: IO a -> OptionParser a Source #
inGroup :: String -> OptionParser a -> OptionParser a Source #
expert :: OptionParser a -> OptionParser a Source #
OptionParser a -> OptionParser a Source #
::version :: String -> OptionParser a -> OptionParser a Source #
help :: String -> String -> OptionParser a -> OptionParser a Source #
parseCommandLine :: String -> OptionParser a -> IO a Source #
parseCommandLineWithExtraArgs :: [String] -> String -> OptionParser a -> IO a Source #
parseCommandLineWithArgs :: String -> [String] -> String -> OptionParser a -> IO a Source #