Closed schell closed 7 years ago
Furthermore, this can be seen when running freer-examples
!
@isovector pointed out that
the problem looks like it is due
Eff
's applicative instance not being lazy enough forever is defined in terms of*>
replacing that with>>
makes it work as expected
I'm not quite sure of the root cause of this, but I can provide a minimal example of my bug. Any use of
forever
in anEff r
effect causes ghc to throw a<<loop>>
exception. Other forms of loops (tail loops, fix) do not exhibit this bug.