Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Adapting proto-lens to optparse-applicative ReadMs. This gives an easy way to define options and arguments for text-format protobuf types.
Synopsis
- proto :: Message a => ReadM a
- protoOption :: Message a => Mod OptionFields a -> Parser a
- protoArgument :: Message a => Mod ArgumentFields a -> Parser a
- protoEnum :: MessageEnum a => ReadM a
- enumOption :: MessageEnum a => Mod OptionFields a -> Parser a
- enumArgument :: MessageEnum a => Mod ArgumentFields a -> Parser a
Messages
proto :: Message a => ReadM a Source #
An optparse-applicative ReadM
for a text-format protobuf. This lets you
have flags or arguments with protobuf values.
protoOption :: Message a => Mod OptionFields a -> Parser a Source #
Shorthand for a text-format protobuf option.
protoArgument :: Message a => Mod ArgumentFields a -> Parser a Source #
Shorthand for a text-format protobuf argument.
Enums
protoEnum :: MessageEnum a => ReadM a Source #
An optparse-applicative ReadM
for an enum name or number.
enumOption :: MessageEnum a => Mod OptionFields a -> Parser a Source #
Shorthand for a text-format enumbuf option.
enumArgument :: MessageEnum a => Mod ArgumentFields a -> Parser a Source #
Shorthand for a text-format enumbuf argument.