News for hackers. Stuff that matters.
Re:Why the world needs Haskell by ghswa on Tuesday July 09, 2013 @06:48PM (#6016221)
Using the mechanic employed by the scala plugin I linked to[1], dofib would be annotated with pure(argumentProvider). dofib itself is pure however, at each call site, it has the effect of its argument for that call. This is consistent with your example.

[1] https://github.com/lrytz/efftp/wiki/Relative-Effects

edit: That's effectively (sorry!) higher-order effects, behaving just as you'd expect.

There are no comments on this comment yet.