-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Simple command line interface arguments parser -- -- A very simple API for the "optparse-applicative" library, which -- maintains the compatibility with it, while being completely -- self-sufficient. IOW, you don't need to depend on -- "optparse-applicative" to apply this library, yet you still can -- integrate with it, when needed. @package optparse-applicative-simple @version 1 module OptparseApplicative.Simple.Parser -- | Specification of a command line arguments parser and help generator. -- -- Has instances of Functor, Applicative and -- Alternative, which you can use for composition. type Parser = Parser -- | Definition of a single argument. argument :: Text -> Maybe Char -> Maybe Text -> Maybe (a, Text) -> Parser a -> Parser a module OptparseApplicative.Simple.IO -- | Parses the application arguments and outputs help when needed. parser :: Text -> Parser a -> IO a