Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
mkConfigParser :: forall f c. (Applicative f, TraversableB c, ProductB c) => HargCtx -> c (Compose Opt f) -> Parser (c f) Source #
getConfig :: HargCtx -> Parser (c (f :: Type -> Type)) -> Parser (a (g :: Type -> Type)) -> IO (c f) Source #
Run two option parsers in parallel and return the result of the
first one. This is used with the configuration parser being the first
argument, and the target option parser that has been converted to
the dummy parser using toDummyOpts
as the second
one.