Forcing a linking error?

Erik de Castro Lopo mle+hs at mega-nerd.com
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?

Cheers,
Eri
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the ghc-devs mailing list