#6126: Fix risk of dead-lock in documentation of Control.Concurrent
---------------------------------+------------------------------------------
    Reporter:  basvandijk        |       Owner:                   
        Type:  bug               |      Status:  new              
    Priority:  normal            |   Milestone:                   
   Component:  libraries/base    |     Version:  7.4.1            
    Keywords:                    |          Os:  Unknown/Multiple 
Architecture:  Unknown/Multiple  |     Failure:  Documentation bug
  Difficulty:  Unknown           |    Testcase:                   
   Blockedby:                    |    Blocking:                   
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by simonmar):

  * difficulty:  => Unknown


Comment:

 I've actually been intending to fix this a different way.  I want to add
 `forkFinally`:

 {{{
 forkFinally :: IO a -> (Either SomeException a -> IO ()) -> IO ThreadId
 forkFinally action action =
   mask $ \restore ->
     forkIO $ try (restore action) >>= action
 }}}

 Furthermore I'd like to add an Async API that builds on this to add some
 higher level concurrency operators, but I'll post a proposal on the
 libraries list about this.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6126#comment:1>
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