Skip to content

Commit 1e56c03

Browse files
authored
Merge pull request #92 from purescript/phil/discards
Avoid Discard constraints
2 parents 1c2ec49 + 247a162 commit 1e56c03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Array/ST/Iterator.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ iterate iter f = do
4545
next :: forall a h r. Iterator h a -> Eff (st :: ST h | r) (Maybe a)
4646
next (Iterator f currentIndex) = do
4747
i <- readSTRef currentIndex
48-
modifySTRef currentIndex (_ + 1)
48+
_ <- modifySTRef currentIndex (_ + 1)
4949
pure (f i)
5050

5151
-- | Get the next item out of an iterator without advancing it.
@@ -67,7 +67,7 @@ pushWhile p iter array = do
6767
mx <- peek iter
6868
case mx of
6969
Just x | p x -> do
70-
pushSTArray array x
70+
_ <- pushSTArray array x
7171
void $ next iter
7272
_ ->
7373
void $ writeSTRef break true

0 commit comments

Comments
 (0)