HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleproto-lens-0.7.1.5Haskell2010

Data.ProtoLens.Combinators

An assorted collection of functions useful when working with ProtoLens protocol buffers. These functions are inspired by functionality found in the protobuf implementation in other languages.

  • 4 values
  • Packageproto-lens-0.7.1.5
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCombinators.hs
valueclear :: Setter a a' b (Maybe b') -> a -> a'
#

Sets the provided lens in a to Nothing.

valuemake :: Message msg => State msg a -> msg
#

Creates a Default and then applies the provided State to it. This is convenient for creating complicated structures.

valuemodifyInState :: s -> State s a -> s
#

Allows one to modify a value in the State monad. Note that this is just for syntactic convenience with do blocks, e.g.

   newThing = modifyInState thing $ do
       ...