Permalink
Browse files

Support for hashable 1.2

  • Loading branch information...
1 parent 409cd31 commit 85f308a08e313634c403f73c49b4944dc6653deb @ekmett committed Dec 14, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −2 reducers.cabal
  2. +0 −1 src/Data/Semigroup/Reducer.hs
  3. +0 −1 src/Data/Semigroup/Reducer/With.hs
View
4 reducers.cabal
@@ -1,6 +1,6 @@
name: reducers
category: Data, Math, Numerical, Semigroups
-version: 3.0.0.1
+version: 3.0.0.2
license: BSD3
cabal-version: >= 1.6
license-file: LICENSE
@@ -29,7 +29,7 @@ library
bytestring >= 0.9.1 && < 0.11,
containers >= 0.3 && < 0.6,
fingertree >= 0.0.1 && < 0.1,
- hashable >= 1.1.2.1 && < 1.2,
+ hashable >= 1.1.2.1 && < 1.3,
text >= 0.11.1.5 && < 0.12,
unordered-containers >= 0.1.4 && < 0.3,
semigroups >= 0.8.3.1 && < 0.9,
View
1 src/Data/Semigroup/Reducer.hs
@@ -105,7 +105,6 @@ newtype Count = Count { getCount :: Int } deriving
)
instance Hashable Count where
- hash = hash . getCount
hashWithSalt n = hashWithSalt n . getCount
instance Semigroup Count where
View
1 src/Data/Semigroup/Reducer/With.hs
@@ -34,7 +34,6 @@ newtype WithReducer m c = WithReducer { withoutReducer :: c }
deriving (Eq, Ord, Show, Read)
instance Hashable c => Hashable (WithReducer m c) where
- hash = hash . withoutReducer
hashWithSalt n = hashWithSalt n . withoutReducer
instance Functor (WithReducer m) where

0 comments on commit 85f308a

Please sign in to comment.