Skip to content

Commit

Permalink
Add Hashable instance for HashSet
Browse files Browse the repository at this point in the history
  • Loading branch information
rhendric authored and fehrenbach committed Feb 26, 2019
1 parent 85e3342 commit f7ff282
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Data/HashSet.purs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ newtype HashSet a = HashSet (M.HashMap a Unit)

derive newtype instance eqHashSet :: Eq a => Eq (HashSet a)

derive newtype instance hashableHashSet :: Hashable a => Hashable (HashSet a)

instance showHashSet :: Show a => Show (HashSet a) where
show s = "(fromFoldable " <> show (toArray s) <> ")"

Expand Down

0 comments on commit f7ff282

Please sign in to comment.