Safe Haskell | None |
---|---|
Language | Haskell2010 |
Proarrow.Object.BinaryCoproduct
Documentation
class CategoryOf k => HasBinaryCoproducts k where Source Comments #
Methods
lft' :: forall (a :: k) (b :: k). Obj a -> Obj b -> a ~> (a || b) Source Comments #
rgt' :: forall (a :: k) (b :: k). Obj a -> Obj b -> b ~> (a || b) Source Comments #
(|||) :: forall (x :: k) (a :: k) (y :: k). (x ~> a) -> (y ~> a) -> (x || y) ~> a Source Comments #
(+++) :: forall (a :: k) (b :: k) (x :: k) (y :: k). (a ~> x) -> (b ~> y) -> (a || b) ~> (x || y) Source Comments #
Instances
HasBinaryCoproducts BOOL Source Comments # | |||||||||||||||||
Defined in Proarrow.Category.Instance.Bool Associated Types
Methods lft' :: forall (a :: BOOL) (b :: BOOL). Obj a -> Obj b -> a ~> (a || b) Source Comments # rgt' :: forall (a :: BOOL) (b :: BOOL). Obj a -> Obj b -> b ~> (a || b) Source Comments # (|||) :: forall (x :: BOOL) (a :: BOOL) (y :: BOOL). (x ~> a) -> (y ~> a) -> (x || y) ~> a Source Comments # (+++) :: forall (a :: BOOL) (b :: BOOL) (x :: BOOL) (y :: BOOL). (a ~> x) -> (b ~> y) -> (a || b) ~> (x || y) Source Comments # | |||||||||||||||||
HasBinaryCoproducts LINEAR Source Comments # | |||||||||||||||||
Defined in Proarrow.Category.Instance.Linear Methods lft' :: forall (a :: LINEAR) (b :: LINEAR). Obj a -> Obj b -> a ~> (a || b) Source Comments # rgt' :: forall (a :: LINEAR) (b :: LINEAR). Obj a -> Obj b -> b ~> (a || b) Source Comments # (|||) :: forall (x :: LINEAR) (a :: LINEAR) (y :: LINEAR). (x ~> a) -> (y ~> a) -> (x || y) ~> a Source Comments # (+++) :: forall (a :: LINEAR) (b :: LINEAR) (x :: LINEAR) (y :: LINEAR). (a ~> x) -> (b ~> y) -> (a || b) ~> (x || y) Source Comments # | |||||||||||||||||
HasBinaryCoproducts UNIT Source Comments # | |||||||||||||||||
Defined in Proarrow.Object.BinaryCoproduct Methods lft' :: forall (a :: UNIT) (b :: UNIT). Obj a -> Obj b -> a ~> (a || b) Source Comments # rgt' :: forall (a :: UNIT) (b :: UNIT). Obj a -> Obj b -> b ~> (a || b) Source Comments # (|||) :: forall (x :: UNIT) (a :: UNIT) (y :: UNIT). (x ~> a) -> (y ~> a) -> (x || y) ~> a Source Comments # (+++) :: forall (a :: UNIT) (b :: UNIT) (x :: UNIT) (y :: UNIT). (a ~> x) -> (b ~> y) -> (a || b) ~> (x || y) Source Comments # | |||||||||||||||||
HasBinaryCoproducts Type Source Comments # | |||||||||||||||||
Defined in Proarrow.Object.BinaryCoproduct Associated Types
| |||||||||||||||||
HasBinaryProducts k => HasBinaryCoproducts (OPPOSITE k) Source Comments # | |||||||||||||||||
Defined in Proarrow.Category.Opposite Methods lft' :: forall (a :: OPPOSITE k) (b :: OPPOSITE k). Obj a -> Obj b -> a ~> (a || b) Source Comments # rgt' :: forall (a :: OPPOSITE k) (b :: OPPOSITE k). Obj a -> Obj b -> b ~> (a || b) Source Comments # (|||) :: forall (x :: OPPOSITE k) (a :: OPPOSITE k) (y :: OPPOSITE k). (x ~> a) -> (y ~> a) -> (x || y) ~> a Source Comments # (+++) :: forall (a :: OPPOSITE k) (b :: OPPOSITE k) (x :: OPPOSITE k) (y :: OPPOSITE k). (a ~> x) -> (b ~> y) -> (a || b) ~> (x || y) Source Comments # | |||||||||||||||||
(CategoryOf j, CategoryOf k) => HasBinaryCoproducts (PRO j k) Source Comments # | |||||||||||||||||
Defined in Proarrow.Object.BinaryCoproduct Methods lft' :: forall (a :: PRO j k) (b :: PRO j k). Obj a -> Obj b -> a ~> (a || b) Source Comments # rgt' :: forall (a :: PRO j k) (b :: PRO j k). Obj a -> Obj b -> b ~> (a || b) Source Comments # (|||) :: forall (x :: PRO j k) (a :: PRO j k) (y :: PRO j k). (x ~> a) -> (y ~> a) -> (x || y) ~> a Source Comments # (+++) :: forall (a :: PRO j k) (b :: PRO j k) (x :: PRO j k) (y :: PRO j k). (a ~> x) -> (b ~> y) -> (a || b) ~> (x || y) Source Comments # |
lft :: forall {k} (a :: k) (b :: k). (HasBinaryCoproducts k, Ob a, Ob b) => a ~> (a || b) Source Comments #
rgt :: forall {k} (a :: k) (b :: k). (HasBinaryCoproducts k, Ob a, Ob b) => b ~> (a || b) Source Comments #
left :: forall {k} (c :: k) (a :: k) (b :: k). (HasBinaryCoproducts k, Ob c) => (a ~> b) -> (a || c) ~> (b || c) Source Comments #
right :: forall {k} (c :: k) (a :: k) (b :: k). (HasBinaryCoproducts k, Ob c) => (a ~> b) -> (c || a) ~> (c || b) Source Comments #
type HasCoproducts k = (HasInitialObject k, HasBinaryCoproducts k) Source Comments #
newtype COPROD k Source Comments #
Constructors
COPR k |
Instances
data Coprod (a :: COPROD k) (b :: COPROD k) where Source Comments #
Constructors
Coprod | |
Instances
CategoryOf k => Promonad (Coprod :: COPROD k -> COPROD k -> Type) Source Comments # | |
Tambara (Coprod :: COPROD Type -> COPROD Type -> Type) (Replacing a b :: Type -> Type -> Type) Source Comments # | |
Tambara (Coprod :: COPROD Type -> COPROD Type -> Type) (Setting a b :: Type -> Type -> Type) Source Comments # | |
HasCoproducts k => MonoidalProfunctor (Coprod :: COPROD k -> COPROD k -> Type) Source Comments # | |
CategoryOf k => Profunctor (Coprod :: COPROD k -> COPROD k -> Type) Source Comments # | |
Defined in Proarrow.Object.BinaryCoproduct | |
Tambara (Coprod :: COPROD Type -> COPROD Type -> Type) (Previewing a b :: COPROD Type -> COPROD Type -> Type) Source Comments # | |