Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- type (:->) p q = forall a b. p a b -> q a b
- class BifunctorFunctor t where
- class BifunctorFunctor t => BifunctorMonad t where
- biliftM :: BifunctorMonad t => (p :-> q) -> t p :-> t q
- class BifunctorFunctor t => BifunctorComonad t where
- biliftW :: BifunctorComonad t => (p :-> q) -> t p :-> t q
Documentation
type (:->) p q = forall a b. p a b -> q a b infixr 0 #
Using parametricity as an approximation of a natural transformation in two arguments.
class BifunctorFunctor t where #
Instances
class BifunctorFunctor t => BifunctorMonad t where #
biliftM :: BifunctorMonad t => (p :-> q) -> t p :-> t q #
class BifunctorFunctor t => BifunctorComonad t where #
biextract, (biextend | biduplicate)
Instances
BifunctorComonad (Product p :: (k1 -> k2 -> Type) -> k1 -> k2 -> Type) # | |
Defined in Data.Bifunctor.Product | |
Comonad f => BifunctorComonad (Tannen f :: (k1 -> k2 -> Type) -> k1 -> k2 -> Type) # | |
biliftW :: BifunctorComonad t => (p :-> q) -> t p :-> t q #