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.
(
% ) :: Integer -> Integer -> AspectRatioclay Clay.Geometry The aspect ratio of the width to the height for use with aspectRatio. Note that this is not the same % operator from the Data.Ratio module, although they do both semantically represent ratios. The same symbol is used to signify that the return value is a ratio.
-
ratio-int Data.RatioInt Forms the ratio of two Int numbers.
(
%%@= ) :: MonadState s m => Over (Indexed i) ((,) r) s s a b -> (i -> a -> (r, b)) -> m rlens Control.Lens.Lens Adjust the target of an IndexedLens returning a supplementary result, or adjust all of the targets of an IndexedTraversal within the current state, and return a monoidal summary of the supplementary results.
l %%@= f ≡ state (l %%@~ f)
(%%@=) :: MonadState s m => IndexedLens i s s a b -> (i -> a -> (r, b)) -> s -> m r (%%@=) :: (MonadState s m, Monoid r) => IndexedTraversal i s s a b -> (i -> a -> (r, b)) -> s -> m r
(
%%@= ) :: MonadState s m => Over (Indexed i) ((,) r) s s a b -> (i -> a -> (r, b)) -> m rlens Control.Lens.Operators Adjust the target of an IndexedLens returning a supplementary result, or adjust all of the targets of an IndexedTraversal within the current state, and return a monoidal summary of the supplementary results.
l %%@= f ≡ state (l %%@~ f)
(%%@=) :: MonadState s m => IndexedLens i s s a b -> (i -> a -> (r, b)) -> s -> m r (%%@=) :: (MonadState s m, Monoid r) => IndexedTraversal i s s a b -> (i -> a -> (r, b)) -> s -> m r
(
%= ) :: MonadState s m => ASetter s s a b -> (a -> b) -> m ()lens Control.Lens.Operators Map over the target of a Lens or all of the targets of a Setter or Traversal in our monadic state.
>>> execState (do _1 %= f;_2 %= g) (a,b) (f a,g b)
>>> execState (do both %= f) (a,b) (f a,f b)
(%=) :: MonadState s m => Iso' s a -> (a -> a) -> m () (%=) :: MonadState s m => Lens' s a -> (a -> a) -> m () (%=) :: MonadState s m => Traversal' s a -> (a -> a) -> m () (%=) :: MonadState s m => Setter' s a -> (a -> a) -> m ()
(%=) :: MonadState s m => ASetter s s a b -> (a -> b) -> m ()
(
%@= ) :: MonadState s m => AnIndexedSetter i s s a b -> (i -> a -> b) -> m ()lens Control.Lens.Operators Adjust every target in the current state of an IndexedSetter, IndexedLens or IndexedTraversal with access to the index. When you do not need access to the index then (%=) is more liberal in what it can accept.
l %= f ≡ l %@= const f
(%@=) :: MonadState s m => IndexedSetter i s s a b -> (i -> a -> b) -> m () (%@=) :: MonadState s m => IndexedLens i s s a b -> (i -> a -> b) -> m () (%@=) :: MonadState s m => IndexedTraversal i s t a b -> (i -> a -> b) -> m ()
(
%@~ ) :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> tlens Control.Lens.Operators Adjust every target of an IndexedSetter, IndexedLens or IndexedTraversal with access to the index.
(%@~) ≡ iover
When you do not need access to the index then (%~) is more liberal in what it can accept.l %~ f ≡ l %@~ const f
(%@~) :: IndexedSetter i s t a b -> (i -> a -> b) -> s -> t (%@~) :: IndexedLens i s t a b -> (i -> a -> b) -> s -> t (%@~) :: IndexedTraversal i s t a b -> (i -> a -> b) -> s -> t
(
%~ ) :: ASetter s t a b -> (a -> b) -> s -> tlens Control.Lens.Operators 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 ()lens Control.Lens.Setter Map over the target of a Lens or all of the targets of a Setter or Traversal in our monadic state.
>>> execState (do _1 %= f;_2 %= g) (a,b) (f a,g b)
>>> execState (do both %= f) (a,b) (f a,f b)
(%=) :: MonadState s m => Iso' s a -> (a -> a) -> m () (%=) :: MonadState s m => Lens' s a -> (a -> a) -> m () (%=) :: MonadState s m => Traversal' s a -> (a -> a) -> m () (%=) :: MonadState s m => Setter' s a -> (a -> a) -> m ()
(%=) :: MonadState s m => ASetter s s a b -> (a -> b) -> m ()
(
%@= ) :: MonadState s m => AnIndexedSetter i s s a b -> (i -> a -> b) -> m ()lens Control.Lens.Setter Adjust every target in the current state of an IndexedSetter, IndexedLens or IndexedTraversal with access to the index. When you do not need access to the index then (%=) is more liberal in what it can accept.
l %= f ≡ l %@= const f
(%@=) :: MonadState s m => IndexedSetter i s s a b -> (i -> a -> b) -> m () (%@=) :: MonadState s m => IndexedLens i s s a b -> (i -> a -> b) -> m () (%@=) :: MonadState s m => IndexedTraversal i s t a b -> (i -> a -> b) -> m ()