We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c2ec49 + 247a162 commit 1e56c03Copy full SHA for 1e56c03
src/Data/Array/ST/Iterator.purs
@@ -45,7 +45,7 @@ iterate iter f = do
45
next :: forall a h r. Iterator h a -> Eff (st :: ST h | r) (Maybe a)
46
next (Iterator f currentIndex) = do
47
i <- readSTRef currentIndex
48
- modifySTRef currentIndex (_ + 1)
+ _ <- modifySTRef currentIndex (_ + 1)
49
pure (f i)
50
51
-- | Get the next item out of an iterator without advancing it.
@@ -67,7 +67,7 @@ pushWhile p iter array = do
67
mx <- peek iter
68
case mx of
69
Just x | p x -> do
70
- pushSTArray array x
+ _ <- pushSTArray array x
71
void $ next iter
72
_ ->
73
void $ writeSTRef break true
0 commit comments