Skip to content

Commit 0bfed91

Browse files
UARTmanbuzden
authored andcommitted
[ finset ] Fix bug in Eq and Ord
1 parent df335fe commit 0bfed91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Data/Fin/Set.idr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ export
166166

167167
export
168168
{n : _} -> Eq (FinSet n) where
169-
(==) = (==) `on` (mask n .|.) . unFS
169+
(==) = (==) `on` (mask n .&.) . unFS
170170

171171
export
172172
{n : _} -> Ord (FinSet n) where
173-
compare = comparing $ (mask n .|.) . unFS
173+
compare = comparing $ (mask n .&.) . unFS
174174

175175
export
176176
Semigroup (FinSet n) where

0 commit comments

Comments
 (0)