| Portability | non-portable (GHC Extensions) |
|---|---|
| Stability | experimental |
| Maintainer | Patrick Bahr <[email protected]> |
| Safe Haskell | Safe-Inferred |
Data.Comp.Multi.Ops
Description
This module provides operators on higher-order functors. All definitions are generalised versions of those in Data.Comp.Ops.
Documentation
Data type defining coproducts.
Instances
| :<: f g => f :<: (:+: h g) | |
| f :<: (:+: f g) | |
| (HFunctor f, HFunctor g) => HFunctor (:+: f g) | |
| (HFoldable f, HFoldable g) => HFoldable (:+: f g) | |
| (HTraversable f, HTraversable g) => HTraversable (:+: f g) | |
| (ShowHF f, ShowHF g) => ShowHF (:+: f g) | |
| (EqHF f, EqHF g) => EqHF (:+: f g) |
|
| (OrdHF f, OrdHF g) => OrdHF (:+: f g) |
|
| (Desugar f h, Desugar g h) => Desugar (:+: f g) h | |
| (HasVars f v0, HasVars g v0) => HasVars (:+: f g) v0 | |
| DistAnn s p s' => DistAnn (:+: f s) p (:+: (:&: f p) s') | |
| RemA s s' => RemA (:+: (:&: f p) s) (:+: f s') |
caseH :: (f a b -> c) -> (g a b -> c) -> (f :+: g) a b -> cSource
Utility function to case on a higher-order functor sum, without exposing the internal representation of sums.
The subsumption relation.
This data type adds a constant product to a signature. Alternatively, this could have also been defined as
data (f :&: a) (g :: * -> *) e = f g e :&: a e
This is too general, however, for example for productHHom.
Constructors
| (f g e) :&: a |