| Copyright | (C) 2011-2015 Edward Kmett |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell98 |
Data.Semigroupoid.Coproduct
Description
Documentation
data Coproduct j k a b where #
Constructors
| L :: j a b -> Coproduct j k (Left a) (Left b) | |
| R :: k a b -> Coproduct j k (Right a) (Right b) |
Instances
| (Groupoid j, Groupoid k) => Groupoid (Coproduct j k :: Either a b -> Either a b -> *) # | |
Defined in Data.Semigroupoid.Coproduct | |
| (Semigroupoid j, Semigroupoid k) => Semigroupoid (Coproduct j k :: Either a b -> Either a b -> *) # | |
| (Semigroupoid l, Ob r a2) => Ob (Coproduct l r :: Either a1 b -> Either a1 b -> *) (Right a2 :: Either a1 b) # | |
| (Ob l a2, Semigroupoid r) => Ob (Coproduct l r :: Either a1 b -> Either a1 b -> *) (Left a2 :: Either a1 b) # | |