Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
%~ ) :: ASetter s t a b -> (a -> b) -> s -> tdiagrams-lib Diagrams.Prelude Modifies the target of a Lens or all of the targets of a Setter or Traversal with a user supplied function. This is an infix version of over.
fmap f ≡ mapped %~ f fmapDefault f ≡ traverse %~ f
>>> (a,b,c) & _3 %~ f (a,b,f c)
>>> (a,b) & both %~ f (f a,f b)
>>> _2 %~ length $ (1,"hello") (1,5)
>>> traverse %~ f $ [a,b,c] [f a,f b,f c]
>>> traverse %~ even $ [1,2,3] [False,True,False]
>>> traverse.traverse %~ length $ [["hello","world"],["!!!"]] [[5,5],[3]]
(%~) :: Setter s t a b -> (a -> b) -> s -> t (%~) :: Iso s t a b -> (a -> b) -> s -> t (%~) :: Lens s t a b -> (a -> b) -> s -> t (%~) :: Traversal s t a b -> (a -> b) -> s -> t
(
%= ) :: MonadState s m => ASetter s s a b -> (a -> b) -> m ()Cabal-syntax Distribution.Compat.Lens No documentation available.
(
%~ ) :: ASetter s t a b -> (a -> b) -> s -> tCabal-syntax Distribution.Compat.Lens No documentation available.
(
%~ ) :: forall (a :: k) (b :: k) . SDecide k => Sing a -> Sing b -> Decision (a :~: b)singletons Data.Singletons.Decide Compute a proof or disproof of equality, given two singletons.
(
%~ ) :: Lens' s a -> (a -> a) -> s -> srelude Relude.Extra.Lens The operator form of over.
-
singletons-base Control.Applicative.Singletons No documentation available.
-
singletons-base Control.Applicative.Singletons No documentation available.
-
singletons-base Control.Applicative.Singletons No documentation available.
-
singletons-base Control.Applicative.Singletons No documentation available.
-
singletons-base Control.Applicative.Singletons No documentation available.