Name: Anonymous 2014-02-08 18:21
Supposedly there's a way to make a Goto monad with both backwards and forwards gotos using MonadFix and mdo. How do they do this?
mdo
a <- label
cond <- action1
goto (if cond then a else b)
action2
b <- label