Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 5de077c

Browse files
authored
Merge pull request #37 from mlang/Discard
Avoid Discard constraint
2 parents 547ec16 + 2077231 commit 5de077c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Set.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ intersection s1 s2 = fromFoldable $ runPure (runSTArray (emptySTArray >>= inters
157157
if l < ll && r < rl
158158
then case compare (ls `Array.unsafeIndex` l) (rs `Array.unsafeIndex` r) of
159159
EQ -> do
160-
pushSTArray acc (ls `Array.unsafeIndex` l)
160+
_ <- pushSTArray acc (ls `Array.unsafeIndex` l)
161161
pure $ Loop {a: l + 1, b: r + 1}
162162
LT -> pure $ Loop {a: l + 1, b: r}
163163
GT -> pure $ Loop {a: l, b: r + 1}

0 commit comments

Comments
 (0)