Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
<>:= ) :: (MonadState s m, Semigroup a) => ASetter' s a -> a -> m ()lens Control.Lens.Operators Modify the target(s) of a Lens', Iso, Setter or Traversal by using (<>). However, unlike <>=, it is prepend to the head side.
(
<>:~ ) :: Semigroup b => ASetter s t b b -> b -> s -> tlens Control.Lens.Operators Modify the target of a Semigroup value by using (<>). However, unlike <>~, it is prepend to the head side.
>>> ["world"] & id <>:~ ["hello"] ["hello","world"]
>>> (["world"], ["lens"]) & _1 <>:~ ["hello"] (["hello","world"],["lens"])
(
<>= ) :: (MonadState s m, Semigroup a) => ASetter' s a -> a -> m ()lens Control.Lens.Operators Modify the target(s) of a Lens', Iso, Setter or Traversal by using (<>).
>>> execState (do _1 <>= Sum c; _2 <>= Product d) (Sum a,Product b) (Sum {getSum = a + c},Product {getProduct = b * d})>>> execState (both <>= "!!!") ("hello","world") ("hello!!!","world!!!")(<>=) :: (MonadState s m, Semigroup a) => Setter' s a -> a -> m () (<>=) :: (MonadState s m, Semigroup a) => Iso' s a -> a -> m () (<>=) :: (MonadState s m, Semigroup a) => Lens' s a -> a -> m () (<>=) :: (MonadState s m, Semigroup a) => Traversal' s a -> a -> m ()
(
<>~ ) :: Semigroup a => ASetter s t a a -> a -> s -> tlens Control.Lens.Operators Modify the target of a Semigroup value by using (<>).
>>> (Sum a,b) & _1 <>~ Sum c (Sum {getSum = a + c},b)>>> (Sum a,Sum b) & both <>~ Sum c (Sum {getSum = a + c},Sum {getSum = b + c})>>> both <>~ "!!!" $ ("hello","world") ("hello!!!","world!!!")(<>~) :: Semigroup a => Setter s t a a -> a -> s -> t (<>~) :: Semigroup a => Iso s t a a -> a -> s -> t (<>~) :: Semigroup a => Lens s t a a -> a -> s -> t (<>~) :: Semigroup a => Traversal s t a a -> a -> s -> t
(
<>:= ) :: (MonadState s m, Semigroup a) => ASetter' s a -> a -> m ()lens Control.Lens.Setter Modify the target(s) of a Lens', Iso, Setter or Traversal by using (<>). However, unlike <>=, it is prepend to the head side.
(
<>:~ ) :: Semigroup b => ASetter s t b b -> b -> s -> tlens Control.Lens.Setter Modify the target of a Semigroup value by using (<>). However, unlike <>~, it is prepend to the head side.
>>> ["world"] & id <>:~ ["hello"] ["hello","world"]
>>> (["world"], ["lens"]) & _1 <>:~ ["hello"] (["hello","world"],["lens"])
(
<>= ) :: (MonadState s m, Semigroup a) => ASetter' s a -> a -> m ()lens Control.Lens.Setter Modify the target(s) of a Lens', Iso, Setter or Traversal by using (<>).
>>> execState (do _1 <>= Sum c; _2 <>= Product d) (Sum a,Product b) (Sum {getSum = a + c},Product {getProduct = b * d})>>> execState (both <>= "!!!") ("hello","world") ("hello!!!","world!!!")(<>=) :: (MonadState s m, Semigroup a) => Setter' s a -> a -> m () (<>=) :: (MonadState s m, Semigroup a) => Iso' s a -> a -> m () (<>=) :: (MonadState s m, Semigroup a) => Lens' s a -> a -> m () (<>=) :: (MonadState s m, Semigroup a) => Traversal' s a -> a -> m ()
(
<>~ ) :: Semigroup a => ASetter s t a a -> a -> s -> tlens Control.Lens.Setter Modify the target of a Semigroup value by using (<>).
>>> (Sum a,b) & _1 <>~ Sum c (Sum {getSum = a + c},b)>>> (Sum a,Sum b) & both <>~ Sum c (Sum {getSum = a + c},Sum {getSum = b + c})>>> both <>~ "!!!" $ ("hello","world") ("hello!!!","world!!!")(<>~) :: Semigroup a => Setter s t a a -> a -> s -> t (<>~) :: Semigroup a => Iso s t a a -> a -> s -> t (<>~) :: Semigroup a => Lens s t a a -> a -> s -> t (<>~) :: Semigroup a => Traversal s t a a -> a -> s -> t
(
<>~ ) :: Monoid a => ASetter s t a a -> a -> s -> tmicrolens Lens.Micro (<>~) appends a value monoidally to the target.
>>> ("hello", "goodbye") & both <>~ " world!" ("hello world!", "goodbye world!")(
<>:= ) :: (MonadState s m, Semigroup a) => ASetter' s a -> a -> m ()diagrams-lib Diagrams.Prelude Modify the target(s) of a Lens', Iso, Setter or Traversal by using (<>). However, unlike <>=, it is prepend to the head side.