Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
liftMap :: MonadTransFunctor t => (m a -> n b) -> t m a -> t n bmonad-control-identity Control.Monad.Trans.Control.Functor No documentation available.
lensMapParam :: forall (m :: Type -> Type) a b . Monad m => Lens' a b -> Param m a -> Param m bmonadology Control.Monad.Ology.Data.Param No documentation available.
-
monadology Control.Monad.Ology.Data.Prod No documentation available.
lensMapRef :: forall (m :: Type -> Type) a b . Monad m => Lens' a b -> Ref m a -> Ref m bmonadology Control.Monad.Ology.Data.Ref No documentation available.
execMapWithT :: Monad m => m (WithT m a) -> WithT m amonadology Control.Monad.Ology.Specific.WithT No documentation available.
gbimap :: GBifunctor cat1 cat2 cat3 t => cat1 a b -> cat2 c d -> cat3 (t a c) (t b d)monoidal-functors Control.Category.Tensor Covariantly map over both variables.
gbimap f g ≡ glmap f . grmap g
Examples
>>> gbimap @(->) @(->) @(->) @(,) show not (123, False) ("123",True)>>> gbimap @(->) @(->) @(->) @Either show not (Right False) Right True
>>> getOp (gbimap @Op @Op @Op @Either (Op (+ 1)) (Op show)) (Right True) Right "True"
-
monoidal-functors Control.Category.Tensor Covariantally map over the left variable.
-
monoidal-functors Control.Category.Tensor Covariantally map over the right variable.
biinvmap :: BiInvariant p => (a' -> a) -> (a -> a') -> (b' -> b) -> (b -> b') -> p a b -> p a' b'monoidal-functors Data.Bifunctor.BiInvariant Used to apply a pair of isomorphic functions to p a b. Biinvmap picks out the appropriate half of the iso depending if p is covariant or contravariant on each parameter.
Examples
>>> :t biinvmap @(,) (read @Int) show (read @Bool) show biinvmap @(,) (read @Int) show (read @Bool) show :: (Int, Bool) -> (String, String)
>>> biinvmap @(,) (read @Int) show (read @Bool) show (10, True) ("10","True")>>> :t biinvmap @(->) (read @Int) show (read @Bool) show biinvmap @(->) (read @Int) show (read @Bool) show :: (Int -> Bool) -> String -> String
>>> biinvmap @(->) (read @Int) show (read @Bool) show (\i -> i > 10) "12" "True"
-
monoidal-functors Data.Bifunctor.Monoidal.Specialized No documentation available.