I've been trying to port this example over to Haskell, but I keep getting a random "Maybe.fromJust: Nothing" error when I try to set up the signal handler. As far as I can tell, it's coming from the Glib.on method, so I have no clue how to go about fixing it.

Any thoughts?