[GHC] #11682: :main doesn't use a bound thread
GHC
ghc-devs at haskell.org
Sun Mar 6 01:28:38 UTC 2016
#11682: :main doesn't use a bound thread
-------------------------------------+-------------------------------------
Reporter: dmwit | Owner:
Type: feature | Status: new
request |
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.3
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11682>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list