#4857: Add Control.Exception.allowInterrupt
---------------------------------+------------------------------------------
    Reporter:  simonmar          |        Owner:              
        Type:  proposal          |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  libraries/base    |      Version:  7.0.1       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
 This proposal is to add the following function to `Control.Exception`:

 {{{
 -- | When invoked inside 'mask', this function allows a blocked
 -- asynchronous exception to be raised, if one exists.  It is
 -- equivalent to performing an interruptible operation (see
 -- #interruptible#), but does not involve any actual blocking.
 --
 -- When called outside 'mask', or inside 'uninterruptibleMask', this
 -- function has no effect.
 allowInterrupt :: IO ()
 allowInterrupt = unsafeUnmask $ return ()
 }}}

 Some discussion leading up to this can be found in #3837.

 Discussion period: 2 weeks (until 5 Jan 2011)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4857>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to