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

Moduleoptics-extra-0.4.2.1Haskell2010

Optics.State.Operators

Defines infix operators for the operations in Optics.State. These operators are not exposed by the main Optics module, but must be imported explicitly.

  • 1 class
  • 10 values

State modifying optics

3 declarations
value(.=) :: (Is k A_Setter, MonadState s m) => Optic k is s s a b -> b -> m ()
#

Replace the target(s) of an Optic in our monadic state with a new value, irrespective of the old.

This is an infix version of assign.

State modifying optics with passthrough

1 declaration

Returning new value

3 declarations

Returning old value

3 declarations

Passthrough

1 declaration
classclass (Is k A_Traversal, ViewableOptic k r) => PermeableOptic (k :: OpticKind) r where
#

Methods

Instances5PermeableOptic