Skip to content

Commit 2dbb907

Browse files
committed
HashSet.difference: Relax Hashable constraint
This fixes an oversight in #535.
1 parent 83d1130 commit 2dbb907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/HashSet/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ map f = fromList . List.map f . toList
391391
--
392392
-- >>> HashSet.difference (HashSet.fromList [1,2,3]) (HashSet.fromList [2,3,4])
393393
-- fromList [1]
394-
difference :: Hashable a => HashSet a -> HashSet a -> HashSet a
394+
difference :: Eq a => HashSet a -> HashSet a -> HashSet a
395395
difference (HashSet a) (HashSet b) = HashSet (H.difference a b)
396396
{-# INLINABLE difference #-}
397397

0 commit comments

Comments
 (0)