Safe Haskell | None |
---|---|
Language | Haskell98 |
Adapting proto-lens to optparse-applicative ReadMs. This gives an easy way to define options and arguments for text-format protobuf types.
- proto :: Message a => ReadM a
- protoOption :: Message a => Mod OptionFields a -> Parser a
- protoArgument :: Message a => Mod ArgumentFields a -> Parser a
Documentation
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.