Requires linking against the threaded runtime error
Consider the following error message:
CallStack (from HasCallStack):
error, called at libraries/base/GHC/Event/Thread.hs:290:13 in base:GHC.Event.Thread
GHC.Event.Thread.getSystemTimerManager: the TimerManager requires linking against the threaded runtime
If you see this, you are trying to execute code
which requires the application to have been built
with the -threaded flag. You can fix
this in cabal by changing the options passed to GHC.
For example:
common warnings
- ghc-options: -Werror -Wall
+ ghc-options: -Werror -Wall -threaded