Hoogle Search

Within LTS Haskell 24.11 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. (<<.&.~) :: Bits a => Optical' (->) q ((,) a) s a -> a -> q s (a, s)

    lens Data.Bits.Lens

    Bitwise .&. the target(s) of a Lens or Traversal, and return the original value, or a monoidal summary of the original values. When you do not need the old value, (.&.~) is more flexible.

    >>> _2 <<.&.~ 7 $ ("hello", 254)
    (254,("hello",6))
    
    (<<.&.~) ::  Bits a            => Iso s t a a       -> a -> s -> (a, t)
    (<<.&.~) ::  Bits a            => Lens s t a a      -> a -> s -> (a, t)
    (<<.&.~) :: (Bits a, Monoid a) => Traversal s t a a -> a -> s -> (a, t)
    

  2. (<<.|.~) :: Bits a => Optical' (->) q ((,) a) s a -> a -> q s (a, s)

    lens Data.Bits.Lens

    Bitwise .|. the target(s) of a Lens or Traversal, and return the original value, or a monoidal summary of the original values. When you do not need the old value, (.|.~) is more flexible.

    >>> _2 <<.|.~ 6 $ ("hello", 3)
    (3,("hello",7))
    
    (<<.|.~) ::  Bits a            => Iso s t a a       -> a -> s -> (a, t)
    (<<.|.~) ::  Bits a            => Lens s t a a      -> a -> s -> (a, t)
    (<<.|.~) :: (Bits a, Monoid a) => Traversal s t a a -> a -> s -> (a, t)
    

  3. (<<.~) :: LensLike ((,) a) s t a b -> b -> s -> (a, t)

    microlens Lens.Micro

    This is a version of (.~) which modifies the structure and returns it along with the old value:

    >>> (1, 2) & _1 <<.~ 0
    (1, (0, 2))
    
    Simpler type signatures:
    (<<.~) ::             Lens s t a b      -> b -> s -> (a, t)
    (<<.~) :: Monoid a => Traversal s t a b -> b -> s -> (a, t)
    

  4. (<.~) :: ASetter s t a b -> b -> s -> (b, t)

    diagrams-lib Diagrams.Prelude

    Set with pass-through. This is mostly present for consistency, but may be useful for chaining assignments. If you do not need a copy of the intermediate result, then using l .~ t directly is a good idea.

    >>> (a,b) & _1 <.~ c
    (c,(c,b))
    
    >>> ("good","morning","vietnam") & _3 <.~ "world"
    ("world",("good","morning","world"))
    
    >>> (42,Map.fromList [("goodnight","gracie")]) & _2.at "hello" <.~ Just "world"
    (Just "world",(42,fromList [("goodnight","gracie"),("hello","world")]))
    
    (<.~) :: Setter s t a b    -> b -> s -> (b, t)
    (<.~) :: Iso s t a b       -> b -> s -> (b, t)
    (<.~) :: Lens s t a b      -> b -> s -> (b, t)
    (<.~) :: Traversal s t a b -> b -> s -> (b, t)
    

  5. (<<.~) :: LensLike ((,) a) s t a b -> b -> s -> (a, t)

    diagrams-lib Diagrams.Prelude

    Replace the target of a Lens, but return the old value. When you do not need the old value, (.~) is more flexible.

    (<<.~) ::             Lens s t a b      -> b -> s -> (a, t)
    (<<.~) ::             Iso s t a b       -> b -> s -> (a, t)
    (<<.~) :: Monoid a => Traversal s t a b -> b -> s -> (a, t)
    

  6. (!.~) :: Vector v a => v a -> Int -> a

    vector-hashtables Data.Vector.Hashtables.Internal

    Infix version of unsafeIndex.

Page 4 of many | Previous | Next