contravariant 1.3.1 → 1.3.1.1
raw patch · 3 files changed
+9/−6 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- CHANGELOG.markdown +4/−0
- contravariant.cabal +2/−2
- src/Data/Functor/Contravariant.hs +3/−4
CHANGELOG.markdown view
@@ -1,3 +1,7 @@+1.3.1.1+-------+* Fixed builds on GHC 7.2+ 1.3.1 ----- * Added `Data.Functor.Contravariant.Generic` on GHC 7.4+
contravariant.cabal view
@@ -1,6 +1,6 @@ name: contravariant category: Control, Data-version: 1.3.1+version: 1.3.1.1 license: BSD3 cabal-version: >= 1.6 license-file: LICENSE@@ -63,7 +63,7 @@ if flag(StateVar) build-depends: StateVar >= 1.1 && < 1.2 - if impl(ghc >= 7.4 && < 7.6)+ if impl(ghc >= 7.2 && < 7.6) build-depends: ghc-prim exposed-modules:
src/Data/Functor/Contravariant.hs view
@@ -14,7 +14,7 @@ #define MIN_VERSION_base(x,y,z) 1 #endif -#if __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 704 #if MIN_VERSION_transformers(0,3,0) && MIN_VERSION_tagged(0,6,1) {-# LANGUAGE Safe #-} #else@@ -230,8 +230,7 @@ #endif -- | A 'Comparison' is a 'Contravariant' 'Functor', because 'contramap' can--- apply its function argument to each input to each input to the--- comparison function.+-- apply its function argument to each input of the comparison function. instance Contravariant Comparison where contramap f g = Comparison $ on (getComparison g) f @@ -259,7 +258,7 @@ -- @ -- -- __Symmetry__:--- +-- -- @ -- 'getEquivalence' f a b = 'getEquivalence' f b a -- @