| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Profunctor.Cocartesian.Free
Synopsis
- data FreeCocartesian (p :: Type -> Type -> Type) a b
- liftF :: p a b -> FreeCocartesian p a b
- foldFree :: forall (q :: Type -> Type -> Type) (p :: Type -> Type -> Type). Cocartesian q => (p :-> q) -> FreeCocartesian p :-> q
- emptyF :: forall (p :: Type -> Type -> Type) b. FreeCocartesian p Void b
- sumF :: forall (p :: Type -> Type -> Type) a b a' b'. FreeCocartesian p a b -> FreeCocartesian p a' b' -> FreeCocartesian p (Either a a') (Either b b')
- sumDayF :: forall (p :: Type -> Type -> Type) a b. Day Either (FreeCocartesian p) (FreeCocartesian p) a b -> FreeCocartesian p a b
- newtype ForgetCocartesian (p :: Type -> Type -> Type) a b = ForgetCocartesian {
- recallCocartesian :: p a b
The free Cocartesian profunctors
data FreeCocartesian (p :: Type -> Type -> Type) a b Source #
FreeCocartesian p is a Cartesian profunctor freely generated from
a mere Profunctor p.
Instances
liftF :: p a b -> FreeCocartesian p a b Source #
foldFree :: forall (q :: Type -> Type -> Type) (p :: Type -> Type -> Type). Cocartesian q => (p :-> q) -> FreeCocartesian p :-> q Source #
sumF :: forall (p :: Type -> Type -> Type) a b a' b'. FreeCocartesian p a b -> FreeCocartesian p a' b' -> FreeCocartesian p (Either a a') (Either b b') Source #
sumDayF :: forall (p :: Type -> Type -> Type) a b. Day Either (FreeCocartesian p) (FreeCocartesian p) a b -> FreeCocartesian p a b Source #
Newtype wrapper
newtype ForgetCocartesian (p :: Type -> Type -> Type) a b Source #
Forgets Cocartesian instance from a Profunctor.
Constructors
| ForgetCocartesian | |
Fields
| |