On Fri, May 4, 2012 at 3:55 PM, Antoine Latter <aslatter@gmail.com> wrote:
On Fri, May 4, 2012 at 1:19 PM, Brandon Allbery <allbery.b@gmail.com> wrote:
> On Fri, May 4, 2012 at 1:26 PM, Mike Meyer <mwm@mired.org> wrote:
>> But I realized I never got a more fundamental question answered: when
>> does a signal handler written in Haskell run? Is it like C, in that it
>
> I'm not sure it *does* run.  That is, I don't think a Haskell-based signal
> handler is even possible.  When I talk about Haskell's signal handlers, I
> mean C handlers within the GHC runtime.

Well, there is this:

http://www.haskell.org/ghc/docs/latest/html/libraries/unix-2.5.1.0/System-Posix-Signals.html#g:4

OK, looks like that does what I said in my final paragraph (which was written based on the runtime Signals.c source).

--
brandon s allbery                                      allbery.b@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms