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 | Safe |
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 a j, Groupoid b k) => Groupoid (Either a b) (Coproduct b b a a j k) # | |
(Semigroupoid a j, Semigroupoid b k) => Semigroupoid (Either a b) (Coproduct b b a a j k) # | |
(Semigroupoid a l, Ob b r a1) => Ob (Either a b) (Coproduct b b a a l r) (Right a b a1) # | |
(Ob a l a1, Semigroupoid b r) => Ob (Either a b) (Coproduct b b a a l r) (Left a b a1) # | |