| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Profunctor.Cartesian.Free
Synopsis
- data FreeCartesian (p :: Type -> Type -> Type) a b
- = Neutral b
- | Cons (Day (,) p (FreeCartesian p) a b)
- liftF :: p a b -> FreeCartesian p a b
- foldFree :: forall (q :: Type -> Type -> Type) (p :: Type -> Type -> Type). Cartesian q => (p :-> q) -> FreeCartesian p :-> q
- newtype ForgetCartesian (p :: Type -> Type -> Type) a b = ForgetCartesian {
- recallCartesian :: p a b
- assocTup :: ((a, b), c) -> (a, (b, c))
- unassocTup :: (a, (b, c)) -> ((a, b), c)
The free Cartesian profunctor
data FreeCartesian (p :: Type -> Type -> Type) a b Source #
The free Cartesian profunctor.
Constructors
| Neutral b | |
| Cons (Day (,) p (FreeCartesian p) a b) |
Instances
liftF :: p a b -> FreeCartesian p a b Source #
foldFree :: forall (q :: Type -> Type -> Type) (p :: Type -> Type -> Type). Cartesian q => (p :-> q) -> FreeCartesian p :-> q Source #
Newtype wrapper
newtype ForgetCartesian (p :: Type -> Type -> Type) a b Source #
Forgets Cartesian instance from a Profunctor.
Constructors
| ForgetCartesian | |
Fields
| |
Instances
Utility functions
unassocTup :: (a, (b, c)) -> ((a, b), c) Source #