Hi,
this patch allows to return values other than unit through
withSignalsBlocked and withGutsOf.
It has originally been written as part of solving issue332. Meanwhile,
another way of fixing issue332 has been found, but Ganesh told me on IRC
that he had to perform such a hack once, in another part of darcs, and
that it would be a good idea to integrate this patch anyway.
Hence, I resubmit it separately. I believe it is correct, but I may
have misunderstood the semantics of block/unblock. Someone also told me
these functions have changed in recent GHC, but I have not tested
(I'm using 6.12.1).
Best,
Gabriel
1 patch for repository http://darcs.net:
Thu Nov 4 12:45:45 CET 2010 Gabriel Kerneis <kerneis@pps.jussieu.fr>
* Generalize withSignalsBlocked and withGutsOf
Attachments
|