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. cloneIndexedSetter :: AnIndexedSetter i s t a b -> IndexedSetter i s t a b

    lens Control.Lens.Setter

    Clone an IndexedSetter.

  2. cloneSetter :: ASetter s t a b -> Setter s t a b

    lens Control.Lens.Setter

    Restore ASetter to a full Setter.

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

    lens Control.Lens.Setter

    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
    

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

    lens Control.Lens.Setter

    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.

  5. type IndexPreservingSetter s t a b = forall (p :: Type -> Type -> Type) (f :: Type -> Type) . (Conjoined p, Settable f) => p a f b -> p s f t

    lens Control.Lens.Type

    An IndexPreservingSetter can be composed with a IndexedSetter, IndexedTraversal or IndexedLens and leaves the index intact, yielding an IndexedSetter.

  6. type IndexPreservingSetter' s a = IndexPreservingSetter s s a a

    lens Control.Lens.Type

    type IndexedPreservingSetter' i = Simple IndexedPreservingSetter
    

  7. type IndexedSetter i s t a b = forall (f :: Type -> Type) (p :: Type -> Type -> Type) . (Indexable i p, Settable f) => p a f b -> s -> f t

    lens Control.Lens.Type

    Every IndexedSetter is a valid Setter. The Setter laws are still required to hold.

  8. type IndexedSetter' i s a = IndexedSetter i s s a a

    lens Control.Lens.Type

    type IndexedSetter' i = Simple (IndexedSetter i)
    

  9. parseTest :: (Stream s Identity t, Show a) => Parsec s () a -> s -> IO ()

    parsec Text.Parsec

    The expression parseTest p input applies a parser p against input input and prints the result to stdout. Used for testing parsers.

  10. parseTest :: (Stream s Identity t, Show a) => Parsec s () a -> s -> IO ()

    parsec Text.Parsec.Prim

    The expression parseTest p input applies a parser p against input input and prints the result to stdout. Used for testing parsers.

Page 1050 of many | Previous | Next