Closed edsko closed 1 year ago
I'm on a new-year vacation. I will probably come back to this work after a week or so. Sorry for your inconvenience.
No worries at all, enjoy your holidays! :)
Updated the doc (a62e7ef62e4c97b5e00bd0327f94abf2f51713db).
I think that you should also ask GHC developers to warn like "the -threaded option is required" in the Nothing
case.
Hey, what are you doing here, go enjoy your holidays! :) As regards ghc
, I agree, but I just checked 9.4.4 and there at least it's there:
getSystemTimerManager :: IO TM.TimerManager
getSystemTimerManager =
fromMaybe err `fmap` readIORef timerManager
where
err = error "GHC.Event.Thread.getSystemTimerManager: the TimerManager requires linking against the threaded runtime"
First of all, thanks for creating this package and making it available!
I struggled a lot getting anything to work, until I eventually enabled
scDebugLog
, and then found in the logsThat pattern match failure is this one:
The timer manager is only available when using the threaded RTS, and compiling my code with
-threaded
made the problem go away.Admittedly one could reasonably ask why I wasn't compiling my server with
-threaded
in the first place, but this was nonetheless a bit of a debugging journey.