
24 Apr
2015
24 Apr
'15
10:26 a.m.
On Fri, Apr 24, 2015 at 12:16:55PM +0200, Martijn Rijkeboer wrote:
Maybe I don't understand, but inside the pollServer function a call to poll is done and on line 47 and 56 of that same function, pollServer is called again (recursive).
It's fine to call `pollServer` recursively, but it's not fine to call it recursively from a handler, i.e. something that occurs in the second argument to `poll`.
Clear, my bad. I've just implemented a version with StateT (code below) and it doesn't leak space as you already expected. Thank you very much for your help.
Looks good! You're welcome Martijn. Tom