comonad-transformers 3.0.4 → 3.1
raw patch · 3 files changed
+6/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Functor.Coproduct: instance (Eq (f a), Eq (g a)) => Eq (Coproduct f g a)
+ Data.Functor.Coproduct: instance (Ord (f a), Ord (g a)) => Ord (Coproduct f g a)
+ Data.Functor.Coproduct: instance (Read (f a), Read (g a)) => Read (Coproduct f g a)
+ Data.Functor.Coproduct: instance (Show (f a), Show (g a)) => Show (Coproduct f g a)
Files
CHANGELOG.markdown view
@@ -1,3 +1,7 @@+3.1+---+* More instances for `Coproduct`+ 3.0.4 ----- * Removed unnecessary constraints in `Control.Comonad.Trans.Store`.
comonad-transformers.cabal view
@@ -1,6 +1,6 @@ name: comonad-transformers category: Control, Comonads-version: 3.0.4+version: 3.1 license: BSD3 cabal-version: >= 1.6 license-file: LICENSE
src/Data/Functor/Coproduct.hs view
@@ -28,6 +28,7 @@ import Data.Semigroup.Traversable newtype Coproduct f g a = Coproduct { getCoproduct :: Either (f a) (g a) }+ deriving (Eq, Ord, Read, Show) left :: f a -> Coproduct f g a left = Coproduct . Left