Module
Data.Lens.Setter
- Package
- purescript-profunctor-lenses
- Repository
- purescript-contrib/purescript-profunctor-lenses
This module defines functions for working with setters.
#iover Source
iover :: forall b a t s i. IndexedSetter i s t a b -> (i -> a -> b) -> s -> t
Apply a function to the foci of a Setter
that may vary with the index.
#divOver Source
divOver :: forall a t s. EuclideanRing a => Setter s t a a -> a -> s -> t
#disjOver Source
disjOver :: forall a t s. HeytingAlgebra a => Setter s t a a -> a -> s -> t
#conjOver Source
conjOver :: forall a t s. HeytingAlgebra a => Setter s t a a -> a -> s -> t
#appendOver Source
appendOver :: forall a t s. Semigroup a => Setter s t a a -> a -> s -> t
#assign Source
assign :: forall m b a s. MonadState s m => Setter s s a b -> b -> m Unit
Set the foci of a Setter
in a monadic state to a constant value.
#modifying Source
modifying :: forall m b a s. MonadState s m => Setter s s a b -> (a -> b) -> m Unit
Modify the foci of a Setter
in a monadic state.
#addModifying Source
addModifying :: forall m a s. MonadState s m => Semiring a => Setter' s a -> a -> m Unit
#mulModifying Source
mulModifying :: forall m a s. MonadState s m => Semiring a => Setter' s a -> a -> m Unit
#subModifying Source
subModifying :: forall m a s. MonadState s m => Ring a => Setter' s a -> a -> m Unit
#divModifying Source
divModifying :: forall m a s. MonadState s m => EuclideanRing a => Setter' s a -> a -> m Unit
#disjModifying Source
disjModifying :: forall m a s. MonadState s m => HeytingAlgebra a => Setter' s a -> a -> m Unit
#conjModifying Source
conjModifying :: forall m a s. MonadState s m => HeytingAlgebra a => Setter' s a -> a -> m Unit
#appendModifying Source
appendModifying :: forall m a s. MonadState s m => Semigroup a => Setter' s a -> a -> m Unit
#assignJust Source
assignJust :: forall m b a s. MonadState s m => Setter s s a (Maybe b) -> b -> m Unit
Re-exports from Data.Lens.Types
#IndexedSetter Source
type IndexedSetter i s t a b = IndexedOptic Function i s t a b
An indexed setter.
- Modules
- Data.
Lens - Data.
Lens. At - Data.
Lens. Common - Data.
Lens. Fold - Data.
Lens. Fold. Partial - Data.
Lens. Getter - Data.
Lens. Grate - Data.
Lens. Index - Data.
Lens. Indexed - Data.
Lens. Internal. Bazaar - Data.
Lens. Internal. Exchange - Data.
Lens. Internal. Focusing - Data.
Lens. Internal. Forget - Data.
Lens. Internal. Grating - Data.
Lens. Internal. Indexed - Data.
Lens. Internal. Market - Data.
Lens. Internal. Re - Data.
Lens. Internal. Shop - Data.
Lens. Internal. Tagged - Data.
Lens. Internal. Wander - Data.
Lens. Internal. Zipping - Data.
Lens. Iso - Data.
Lens. Iso. Newtype - Data.
Lens. Lens - Data.
Lens. Lens. Product - Data.
Lens. Lens. Tuple - Data.
Lens. Lens. Unit - Data.
Lens. Lens. Void - Data.
Lens. Prism - Data.
Lens. Prism. Coproduct - Data.
Lens. Prism. Either - Data.
Lens. Prism. Maybe - Data.
Lens. Record - Data.
Lens. Setter - Data.
Lens. Traversal - Data.
Lens. Types - Data.
Lens. Zoom