Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support hashable-1.2 & Bumped version from 0.4.0.3 to 0.4.0.4

  • Loading branch information...
commit 8bb0d82541b1ac01c894612f95decf14c0d742c8 1 parent a2e534f
@basvandijk authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 Data/CaseInsensitive.hs
  2. +2 −2 case-insensitive.cabal
View
4 Data/CaseInsensitive.hs
@@ -60,7 +60,7 @@ import qualified Data.Text as T ( Text, toCaseFold )
import qualified Data.Text.Lazy as TL ( Text, toCaseFold, pack, unpack )
-- from hashable:
-import Data.Hashable ( Hashable(hash) )
+import Data.Hashable ( Hashable, hashWithSalt )
--------------------------------------------------------------------------------
-- Case Insensitive Strings
@@ -113,7 +113,7 @@ instance Show s ⇒ Show (CI s) where
showsPrec prec = showsPrec prec . original
instance Hashable s => Hashable (CI s) where
- hash = hash . foldedCase
+ hashWithSalt salt = hashWithSalt salt . foldedCase
--------------------------------------------------------------------------------
View
4 case-insensitive.cabal
@@ -1,5 +1,5 @@
name: case-insensitive
-version: 0.4.0.3
+version: 0.4.0.4
cabal-version: >=1.6
build-type: Simple
license: BSD3
@@ -28,5 +28,5 @@ Library
build-depends: base >= 3 && < 4.7
, bytestring >= 0.9 && < 0.11
, text >= 0.3 && < 0.12
- , hashable >= 1.0 && < 1.2
+ , hashable >= 1.0 && < 1.3
exposed-modules: Data.CaseInsensitive
Please sign in to comment.
Something went wrong with that request. Please try again.