Hoogle Search

Within LTS Haskell 22.18 (ghc-9.6.4)

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

  1. (.~) :: ASetter s t a b -> b -> s -> t

    amazonka-core Amazonka.Core.Lens.Internal

    Replace the target of a Lens or all of the targets of a Setter or Traversal with a constant value. This is an infix version of set, provided for consistency with (.=).

    f <$ a ≡ mapped .~ f $ a
    
    >>> (a,b,c,d) & _4 .~ e
    (a,b,c,e)
    
    >>> (42,"world") & _1 .~ "hello"
    ("hello","world")
    
    >>> (a,b) & both .~ c
    (c,c)
    
    (.~) :: Setter s t a b    -> b -> s -> t
    (.~) :: Iso s t a b       -> b -> s -> t
    (.~) :: Lens s t a b      -> b -> s -> t
    (.~) :: Traversal s t a b -> b -> s -> t
    

  2. (.~) :: ASetter s t a b -> b -> s -> t

    amazonka-test Test.Amazonka.Prelude

    Replace the target of a Lens or all of the targets of a Setter or Traversal with a constant value. This is an infix version of set, provided for consistency with (.=).

    f <$ a ≡ mapped .~ f $ a
    
    >>> (a,b,c,d) & _4 .~ e
    (a,b,c,e)
    
    >>> (42,"world") & _1 .~ "hello"
    ("hello","world")
    
    >>> (a,b) & both .~ c
    (c,c)
    
    (.~) :: Setter s t a b    -> b -> s -> t
    (.~) :: Iso s t a b       -> b -> s -> t
    (.~) :: Lens s t a b      -> b -> s -> t
    (.~) :: Traversal s t a b -> b -> s -> t
    

  3. (.~) :: ASetter s t a b -> b -> s -> t

    lens Control.Lens.Operators

    Replace the target of a Lens or all of the targets of a Setter or Traversal with a constant value. This is an infix version of set, provided for consistency with (.=).

    f <$ a ≡ mapped .~ f $ a
    
    >>> (a,b,c,d) & _4 .~ e
    (a,b,c,e)
    
    >>> (42,"world") & _1 .~ "hello"
    ("hello","world")
    
    >>> (a,b) & both .~ c
    (c,c)
    
    (.~) :: Setter s t a b    -> b -> s -> t
    (.~) :: Iso s t a b       -> b -> s -> t
    (.~) :: Lens s t a b      -> b -> s -> t
    (.~) :: Traversal s t a b -> b -> s -> t
    

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

    lens Control.Lens.Setter

    Replace the target of a Lens or all of the targets of a Setter or Traversal with a constant value. This is an infix version of set, provided for consistency with (.=).

    f <$ a ≡ mapped .~ f $ a
    
    >>> (a,b,c,d) & _4 .~ e
    (a,b,c,e)
    
    >>> (42,"world") & _1 .~ "hello"
    ("hello","world")
    
    >>> (a,b) & both .~ c
    (c,c)
    
    (.~) :: Setter s t a b    -> b -> s -> t
    (.~) :: Iso s t a b       -> b -> s -> t
    (.~) :: Lens s t a b      -> b -> s -> t
    (.~) :: Traversal s t a b -> b -> s -> t
    

  5. (.~) :: ASetter s t a b -> b -> s -> t

    microlens Lens.Micro

    (.~) assigns a value to the target. It's the same thing as using (%~) with const:

    l .~ x = l %~ const x
    
    See set if you want a non-operator synonym. Here it is used to change 2 fields of a 3-tuple:
    >>> (0,0,0) & _1 .~ 1 & _3 .~ 3
    (1,0,3)
    

  6. (.~) :: ASetter s t a b -> b -> s -> t

    rio RIO

    (.~) assigns a value to the target. It's the same thing as using (%~) with const:

    l .~ x = l %~ const x
    
    See set if you want a non-operator synonym. Here it is used to change 2 fields of a 3-tuple:
    >>> (0,0,0) & _1 .~ 1 & _3 .~ 3
    (1,0,3)
    

  7. (.~) :: ASetter s t a b -> b -> s -> t

    diagrams-lib Diagrams.Prelude

    Replace the target of a Lens or all of the targets of a Setter or Traversal with a constant value. This is an infix version of set, provided for consistency with (.=).

    f <$ a ≡ mapped .~ f $ a
    
    >>> (a,b,c,d) & _4 .~ e
    (a,b,c,e)
    
    >>> (42,"world") & _1 .~ "hello"
    ("hello","world")
    
    >>> (a,b) & both .~ c
    (c,c)
    
    (.~) :: Setter s t a b    -> b -> s -> t
    (.~) :: Iso s t a b       -> b -> s -> t
    (.~) :: Lens s t a b      -> b -> s -> t
    (.~) :: Traversal s t a b -> b -> s -> t
    

  8. (.~) :: Is k A_Setter => Optic k is s t a b -> b -> s -> t

    optics-core Optics.Operators

    Infix version of set.

  9. (.~) :: Lens' s a -> a -> s -> s

    relude Relude.Extra.Lens

    The operator form of set.

  10. (.~) :: ASetter s t a b -> b -> s -> t

    Cabal-syntax Distribution.Compat.Lens

    No documentation available.

Page 1 of many | Next