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.
Synopsis
- 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
.