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.
cloneIndexedSetter :: AnIndexedSetter i s t a b -> IndexedSetter i s t a blens Control.Lens.Setter Clone an IndexedSetter.
cloneSetter :: ASetter s t a b -> Setter s t a blens Control.Lens.Setter iset :: AnIndexedSetter i s t a b -> (i -> b) -> s -> tlens 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
isets :: ((i -> a -> b) -> s -> t) -> IndexedSetter i s t a blens 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.-
lens Control.Lens.Type An IndexPreservingSetter can be composed with a IndexedSetter, IndexedTraversal or IndexedLens and leaves the index intact, yielding an IndexedSetter.
type
IndexPreservingSetter' s a = IndexPreservingSetter s s a alens Control.Lens.Type type IndexedPreservingSetter' i = Simple IndexedPreservingSetter
-
lens Control.Lens.Type Every IndexedSetter is a valid Setter. The Setter laws are still required to hold.
type
IndexedSetter' i s a = IndexedSetter i s s a alens Control.Lens.Type type IndexedSetter' i = Simple (IndexedSetter i)
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.
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.