#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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to