Re: [GHC] #1381: Add terminateStmt to "GHC as a library"

2012-12-20 Thread GHC
#1381: Add terminateStmt to "GHC as a library"
---+
  Reporter:  guest |  Owner:  
  Type:  feature request   | Status:  closed  
  Priority:  normal|  Milestone:  7.8.1   
 Component:  GHC API   |Version:  6.6.1   
Resolution:  fixed |   Keywords:  
Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  | Difficulty:  Unknown 
  Testcase:|  Blockedby:  
  Blocking:|Related:  
---+
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  _|_ => 7.8.1


Comment:

 I believe the above patch fixes this ticket, because you can now just
 throw an exception to the thread that calls `runStmt` and the right thing
 will happen: `runStmt` will return with `RunException e` where `e` is the
 exception you threw.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

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


Re: [GHC] #1381: Add terminateStmt to "GHC as a library"

2012-12-20 Thread GHC
#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 marlowsd@…):

 commit 02c4ab049adeb77b8ee0e3b98fbf0f3026eee453
 {{{
 Author: Simon Marlow 
 Date:   Thu Dec 20 09:18:49 2012 +

 Redirect asynchronous exceptions to the sandbox thread in runStmt
 (#1381)

 See comment for details.

 We no longer use pushInterruptTargetThread/popInterruptTargetThread,
 so these could go away in due course.

  compiler/main/InteractiveEval.hs |   43
 -
  1 files changed, 32 insertions(+), 11 deletions(-)
 }}}

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

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


Re: [GHC] #1381: Add terminateStmt to "GHC as a library"

2012-12-13 Thread GHC
#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:|  
-+--

Old description:

> Hi
>
> I would like an extension to the "GHC as a library" API, so that if I
> have done:
>
>   runStmt someStatement
>
> I can prematurely terminate the execution.
>
> I have posted this request on ghc-us...@haskell.org and a more thorough
> explanation can be found there: http://www.haskell.org/pipermail/glasgow-
> haskell-users/2007-May/012613.html
>

> Greetings,
>
> Mads Lindstrøm

New description:

 Hi

 I would like an extension to the "GHC as a library" API, so that if I have
 done:
 {{{
   runStmt someStatement
 }}}
 I can prematurely terminate the execution.

 I have posted this request on ghc-us...@haskell.org and a more thorough
 explanation can be found there: http://www.haskell.org/pipermail/glasgow-
 haskell-users/2007-May/012613.html


 Greetings,

 Mads Lindstrøm

--

Comment(by simonpj):

 I'm not familiar with the details, but it sounds as if you are any
 chance of a patch?

 Simon

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

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


Re: [GHC] #1381: Add terminateStmt to "GHC as a library"

2012-12-13 Thread GHC
#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: 
GHC 
The Glasgow Haskell Compiler

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


Re: [GHC] #1381: Add terminateStmt to "GHC as a library"

2010-06-19 Thread GHC
#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:|   Difficulty:  Unknown 
  Os:  Unknown/Multiple  | Testcase:  
Architecture:  Unknown/Multiple  |  Failure:  None/Unknown
-+--
Changes (by igloo):

  * priority:  low => normal
  * failure:  => None/Unknown
  * milestone:  6.12.3 => _|_


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #1381: Add terminateStmt to "GHC as a library"

2009-04-13 Thread GHC
#1381: Add terminateStmt to "GHC as a library"
-+--
Reporter:  guest |Owner:  
Type:  feature request   |   Status:  new 
Priority:  low   |Milestone:  6.12 branch 
   Component:  GHC API   |  Version:  6.6.1   
Severity:  minor |   Resolution:  
Keywords:|   Difficulty:  Unknown 
Testcase:|   Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
-+--
Changes (by igloo):

  * milestone:  6.10 branch => 6.12 branch

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #1381: Add terminateStmt to "GHC as a library"

2007-05-29 Thread GHC
#1381: Add terminateStmt to "GHC as a library"
+---
Reporter:  guest|Owner: 
Type:  feature request  |   Status:  new
Priority:  low  |Milestone:  6.10   
   Component:  GHC API  |  Version:  6.6.1  
Severity:  minor|   Resolution: 
Keywords:   |   Difficulty:  Unknown
  Os:  Multiple | Testcase: 
Architecture:  Unknown  |  
+---
Changes (by simonmar):

  * milestone:  => 6.10

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs