Skip to content

Commit 666f376

Browse files
authored
Merge pull request #7 from purescript-contrib/fix-shadow
Fix shadowed name warning
2 parents 7aa0e51 + 0e1d2ce commit 666f376

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Control/Monad/Free/Trans.purs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ resume = tailRecM go
4343
go (FreeT f) = map Done (f unit)
4444
go (Bind e) = runExists (\(Bound bound f) ->
4545
case bound unit of
46-
FreeT m -> do
47-
e <- m unit
48-
case e of
46+
FreeT m ->
47+
m unit >>= case _ of
4948
Left a -> pure (Loop (f a))
5049
Right fc -> pure (Done (Right (map (\h -> h >>= f) fc)))
5150
Bind e1 -> runExists (\(Bound m1 f1) -> pure (Loop (bind (m1 unit) (\z -> f1 z >>= f)))) e1) e

0 commit comments

Comments
 (0)