proto-lens-optparse-0.1.0.2: Adapting proto-lens to optparse-applicative ReadMs.

Safe HaskellNone
LanguageHaskell98

Data.ProtoLens.Optparse

Description

Adapting proto-lens to optparse-applicative ReadMs. This gives an easy way to define options and arguments for text-format protobuf types.

Synopsis

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.