-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Adapting proto-lens to optparse-applicative ReadMs.
--   
--   A package adapting proto-lens to optparse-applicative ReadMs. This
--   gives an easy way to define options and arguments for text-format
--   protobuf types.
@package proto-lens-optparse
@version 0.1.1.1


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

-- | An optparse-applicative <a>ReadM</a> for a text-format protobuf. This
--   lets you have flags or arguments with protobuf values.
proto :: Message a => ReadM a

-- | Shorthand for a text-format protobuf option.
protoOption :: Message a => Mod OptionFields a -> Parser a

-- | Shorthand for a text-format protobuf argument.
protoArgument :: Message a => Mod ArgumentFields a -> Parser a

-- | An optparse-applicative <a>ReadM</a> for an enum name or number.
protoEnum :: MessageEnum a => ReadM a

-- | Shorthand for a text-format enumbuf option.
enumOption :: MessageEnum a => Mod OptionFields a -> Parser a

-- | Shorthand for a text-format enumbuf argument.
enumArgument :: MessageEnum a => Mod ArgumentFields a -> Parser a
