Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
iset :: AnIndexedSetter i s t a b -> (i -> b) -> s -> tlens Control.Lens.Combinators Set with index. Equivalent to iover with the current value ignored. When you do not need access to the index, then set is more liberal in what it can accept.
set l ≡ iset l . const
iset :: IndexedSetter i s t a b -> (i -> b) -> s -> t iset :: IndexedLens i s t a b -> (i -> b) -> s -> t iset :: IndexedTraversal i s t a b -> (i -> b) -> s -> t
isets :: ((i -> a -> b) -> s -> t) -> IndexedSetter i s t a blens Control.Lens.Combinators Build an IndexedSetter from an imap-like function. Your supplied function f is required to satisfy:
f id ≡ id f g . f h ≡ f (g . h)
Equational reasoning:isets . iover ≡ id iover . isets ≡ id
Another way to view isets is that it takes a "semantic editor combinator" which has been modified to carry an index and transforms it into a IndexedSetter.runIndexedSetter :: ReifiedIndexedSetter i s t a b -> IndexedSetter i s t a blens Control.Lens.Combinators No documentation available.
runSetter :: ReifiedSetter s t a b -> Setter s t a blens Control.Lens.Combinators No documentation available.
fromSetter :: Mapping p => ASetter s t a b -> OpticP p s t a blens Control.Lens.Profunctor Converts a Setter to a Profunctor-based one.
fromSetter :: Setter s t a b -> SetterP s t a b
toSetter :: Settable f => OpticP (Star f) s t a b -> LensLike f s t a blens Control.Lens.Profunctor Obtain a Setter from a Profunctor-based one.
toSetter :: SetterP s t a b -> Setter s t a b
IndexedSetter :: IndexedSetter i s t a b -> ReifiedIndexedSetter i s t a blens Control.Lens.Reified No documentation available.
newtype
ReifiedIndexedSetter i s t a blens Control.Lens.Reified Reify an IndexedSetter so it can be stored safely in a container.
type
ReifiedIndexedSetter' i s a = ReifiedIndexedSetter i s s a alens Control.Lens.Reified type ReifiedIndexedSetter' i = Simple (ReifiedIndexedSetter i)
-
lens Control.Lens.Reified Reify a Setter so it can be stored safely in a container.