:main doesn't use a bound thread
Here is a short program:
import Control.Concurrent
main = do
bound <- isCurrentThreadBound
print (bound == rtsSupportsBoundThreads)
When compiled (with or without -threaded
), it prints True
. When executed via runhaskell
or via ghci's :main
command, it prints False
.
It would be nicer if it printed True
in all of these cases, in particular to ease interactive development of GUI code and the like.
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.3 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |