While trying to fix the OpenAL/ALUT problems I came across a "simple" problem: How can the current Haskell thread be put to sleep for given time in a portable way? For GHC there is Control.Concurrent.threadDelay, and for *nix-like platforms there is System.Posix.Unistd.usleep, but what about e.g. Hugs on Windows or NHC? Did I miss something obvious? Note that I don't need something highly sophisticated with nanoseconds resolution, something in the 10-50ms range would be enough. The Haskell program itself is not necessarily multi-threaded, it should just wait for a native thread owned by a native library to do some work.
Cheers, S.
