Skip to content

Commit 127e168

Browse files
committed
I'm an idiot sandwich
1 parent 3f9a342 commit 127e168

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Control/Monad/ST/Internal.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ instance monadST :: Monad (ST r)
4242
instance monadRecST :: MonadRec (ST r) where
4343
tailRecM f a = do
4444
r <- new =<< f a
45-
while (isDone <$> read r) do
45+
while (isLooping <$> read r) do
4646
read r >>= case _ of
4747
Loop a' -> do
4848
e <- f a'
@@ -53,8 +53,8 @@ instance monadRecST :: MonadRec (ST r) where
5353
fromDone :: forall a b. Step a b -> b
5454
fromDone = unsafePartial \(Done b) -> b
5555

56-
isDone = case _ of
57-
Done _ -> true
56+
isLooping = case _ of
57+
Loop _ -> true
5858
_ -> false
5959

6060
-- | Run an `ST` computation.

0 commit comments

Comments
 (0)