I'm brand new to Haskell and I'm trying to figure out how to schedule a callback to be fired X seconds from now (and no sooner).
In searching Hoogle and Google, I've discovered:
http://www.haskell.org/ghc/docs/latest/html/libraries/base/GHC-Event.html
as well as:
http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/System-Event.html
Both of these feature a "registerTimeout" function that seems to do what I want. However, System.Event appears to no longer be in the latest builds of Haskell and GHC.Event is marked as being internal.
Is there some user-space substitute I could use? I'd prefer not to use the timing functions intended for GLUT (unless that's the prescribed way of achieving my goal), and System.Timeout doesn't appear to quite what I want; it is intended to put a maximum on the amount of time something can take rather than a minimum.
Thank you for your input!