Skip to content

Commit a5bb09f

Browse files
authored
Merge pull request #123 from andrewthad/hashed_data
import Data.Foldable for base-4.7
2 parents f0e2340 + ade141c commit a5bb09f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Data/Hashable.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ module Data.Hashable
7272

7373
import Data.String (IsString(..))
7474
import Data.Typeable (Typeable)
75+
import Data.Foldable (Foldable(foldr))
7576
import Data.Hashable.Class
7677
#ifdef GENERICS
7778
import Data.Hashable.Generic ()
@@ -223,7 +224,7 @@ hashed a = Hashed a (hash a)
223224
unhashed :: Hashed a -> a
224225
unhashed (Hashed a _) = a
225226

226-
-- | Uses precomputed hash detect inequality faster
227+
-- | Uses precomputed hash to detect inequality faster
227228
instance Eq a => Eq (Hashed a) where
228229
Hashed a ha == Hashed b hb = ha == hb && a == b
229230

0 commit comments

Comments
 (0)