Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

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

  1. iset :: AnIndexedSetter i s t a b -> (i -> b) -> s -> t

    lens Control.Lens.Combinators

    Set with index. Equivalent to iover with the current value ignored. When you do not need access to the index, then set is more liberal in what it can accept.

    set l ≡ iset l . const
    
    iset :: IndexedSetter i s t a b    -> (i -> b) -> s -> t
    iset :: IndexedLens i s t a b      -> (i -> b) -> s -> t
    iset :: IndexedTraversal i s t a b -> (i -> b) -> s -> t
    

  2. isets :: ((i -> a -> b) -> s -> t) -> IndexedSetter i s t a b

    lens Control.Lens.Combinators

    Build an IndexedSetter from an imap-like function. Your supplied function f is required to satisfy:

    f id ≡ id
    f g . f h ≡ f (g . h)
    
    Equational reasoning:
    isets . iover ≡ id
    iover . isets ≡ id
    
    Another way to view isets is that it takes a "semantic editor combinator" which has been modified to carry an index and transforms it into a IndexedSetter.

  3. runIndexedSetter :: ReifiedIndexedSetter i s t a b -> IndexedSetter i s t a b

    lens Control.Lens.Combinators

    No documentation available.

  4. runSetter :: ReifiedSetter s t a b -> Setter s t a b

    lens Control.Lens.Combinators

    No documentation available.

  5. fromSetter :: Mapping p => ASetter s t a b -> OpticP p s t a b

    lens Control.Lens.Profunctor

    Converts a Setter to a Profunctor-based one.

    fromSetter :: Setter s t a b -> SetterP s t a b
    

  6. toSetter :: Settable f => OpticP (Star f) s t a b -> LensLike f s t a b

    lens Control.Lens.Profunctor

    Obtain a Setter from a Profunctor-based one.

    toSetter :: SetterP s t a b -> Setter s t a b
    

  7. IndexedSetter :: IndexedSetter i s t a b -> ReifiedIndexedSetter i s t a b

    lens Control.Lens.Reified

    No documentation available.

  8. newtype ReifiedIndexedSetter i s t a b

    lens Control.Lens.Reified

    Reify an IndexedSetter so it can be stored safely in a container.

  9. type ReifiedIndexedSetter' i s a = ReifiedIndexedSetter i s s a a

    lens Control.Lens.Reified

    type ReifiedIndexedSetter' i = Simple (ReifiedIndexedSetter i)
    

  10. newtype ReifiedSetter s t a b

    lens Control.Lens.Reified

    Reify a Setter so it can be stored safely in a container.

Page 1048 of many | Previous | Next