Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
lens-family-core Lens.Family.State.Strict (%%=) :: Monad m => Lens s s a b -> (a -> (c, b)) -> StateT s m c
Modify a field of the state while returning another value.(%%=) :: (Monad m, Monoid c) => Traversal s s a b -> (a -> (c, b)) -> StateT s m c
Modify each field of the state and return the mconcat of the other values. (
%= ) :: forall (m :: Type -> Type) s a b . Monad m => ASetter s s a b -> (a -> b) -> StateT s m ()lens-family-core Lens.Family.State.Strict Modify a field of the state.
-
optics-extra Optics.Indexed Compose two indexed optics and drop indices of the left one. (If you want to compose a non-indexed and an indexed optic, you can just use (%).)
>>> itoListOf (ifolded %> ifolded) ["foo", "bar"] [(0,'f'),(1,'o'),(2,'o'),(0,'b'),(1,'a'),(2,'r')]
-
optics-extra Optics.State.Operators Modify the target of an PermeableOptic in the current state returning some extra information of type depending on the optic (r, Maybe r or monoidal summary).
-
optics-extra Optics.State.Operators Map over the target(s) of an Optic in our monadic state. This is an infix version of modifying.
(
%~ ) :: forall (a :: k) (b :: k) . SDecide k => Sing a -> Sing b -> Decision (a :~: b)singletons-th Data.Singletons.TH Compute a proof or disproof of equality, given two singletons.
(
%: ) :: LaTeXC l => l -> Text -> lHaTeX Text.LaTeX.Base.Commands This operator appends a comment after a expression. For example:
textbf "I'm just an example." %: "Insert a few words here."
The implementation is(%:) l = (l <>) . comment
Since you are writing in Haskell, you may not need to output comments as you can add them in the Haskell source. I added this feature for completeness. It may be useful for debugging the output as well.-
backprop Numeric.Backprop An infix version of overVar, meant to evoke parallels to %~ from lens. With normal values, you can set modify in a value with a lens:
x & myLens %~ negate
would "modify" a part of x :: b, specified by myLens :: Lens' a b, using the function negate :: a -> a.xVar & myLens %~~ negate
would "modify" a part of xVar :: BVar s b (a BVar holding a b), specified by myLens :: Lens' a b, using the function negate :: BVar s a -> BVar s . The result is a new (updated) value of type BVar s b. Is essentially a convenient wrapper over a viewVar followed by a setVar. (
%~~ ) :: (Num a, Num b, Reifies s W) => Lens' b a -> (BVar s a -> BVar s a) -> BVar s b -> BVar s bbackprop Numeric.Backprop.Num %~~, but with Num constraints instead of Backprop constraints.
(
%= ) :: MonadState a m => Lens a b -> (b -> b) -> m ()data-lens-light Data.Lens.Light Infix modification of a value through a lens into state