[GHC] #1381: Add terminateStmt to "GHC as a library"
GHC
cvs-ghc at haskell.org
Thu Dec 13 15:39:48 CET 2012
#1381: Add terminateStmt to "GHC as a library"
---------------------------------+------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: _|_
Component: GHC API | Version: 6.6.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by edsko):
There is currently no good workaround for this, because
`Panic.interruptTargetThread` is not exported, and hence we cannot find
the `ThreadId` of the thread spawned by `runStmt`. We can avoid `runStmt`
spawning a thread at all by disabling `Opt_GhciSandbox` so that we can
throw `UserInterrupt` to the thread that calls `runStmt`, but that means
that the debugging facilities don't work anymore.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1381#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list