#4810: Versions of bracket without masking acquire action
---------------------------------+------------------------------------------
    Reporter:  mitar             |       Owner:                
        Type:  proposal          |      Status:  new           
    Priority:  normal            |   Component:  libraries/base
     Version:  7.0.1             |    Keywords:                
    Testcase:                    |   Blockedby:                
          Os:  Unknown/Multiple  |    Blocking:                
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown  
---------------------------------+------------------------------------------
 With new mask/restore concept it is impossible to unblock exceptions in
 acquire action which is quite often useful (acquire can be a lengthily
 action). So it could be a good idea to introduce a variant which has
 acquire action unmasked.

 Of course I could write:

 {{{
 mask $ \restore -> bracket (restore . open) (close) (restore . work)
 }}}

 but this is just ugly.

 So I am proposing `bracket'` or `bracketUnmasked` or something.

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