Forcing a linking error?

Erik de Castro Lopo mle+hs at
Fri Aug 14 07:59:02 UTC 2015

Dear ghc-devs,

There is a commonly used library which has at least one function
that when compiled into a program, requires the threaded run time
system. Without the threaded runtime, the program just hangs.

One kludgy solution to this problem is to have the function check
for Control.Concurrent.rtsSupportsBoundThreads being true and 
throwing an error if its not. However, it would be much nicer if
this could be turned into a link time error.

Anyone have any ideas how this might be done?

Erik de Castro Lopo

More information about the ghc-devs mailing list