License | BSD-style (see the file LICENSE) |
---|---|
Maintainer | sjoerd@w3future.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
A cofree functor is right adjoint to a forgetful functor. In this package the forgetful functor forgets class constraints.
Compared to Data.Functor.HCofree
we have 2 two parameters.
- type (:~~>) f g = forall c d. f c d -> g c d
- data HHCofree c g a b where
- counit :: HHCofree c g :~~> g
- leftAdjunct :: c f => (f :~~> g) -> f :~~> HHCofree c g
- unit :: c g => g :~~> HHCofree c g
- rightAdjunct :: (f :~~> HHCofree c g) -> f :~~> g
- transform :: (forall r. c r => (r :~~> f) -> r :~~> g) -> HHCofree c f :~~> HHCofree c g
- hfmap :: (f :~~> g) -> HHCofree c f :~~> HHCofree c g
- hextend :: (HHCofree c f :~~> g) -> HHCofree c f :~~> HHCofree c g
Documentation
data HHCofree c g a b where Source #
The higher order cofree functor for constraint c
.
ProfunctorFunctor (HHCofree c) Source # | |
ProfunctorComonad (HHCofree c) Source # | |
BifunctorComonad * * (HHCofree c) Source # | |
BifunctorFunctor * * * * (HHCofree c) Source # | |
SuperClass1 (* -> * -> *) Bifunctor c => Bifunctor (HHCofree c g) Source # | |
SuperClass1 (* -> * -> *) Choice c => Choice (HHCofree c f) Source # | |
SuperClass1 (* -> * -> *) Closed c => Closed (HHCofree c f) Source # | |
SuperClass1 (* -> * -> *) Strong c => Strong (HHCofree c f) Source # | |
SuperClass1 (* -> * -> *) Profunctor c => Profunctor (HHCofree c g) Source # | |