proto-lens-optparse-0.1.1.11: Adapting proto-lens to optparse-applicative ReadMs.
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

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.