Skip to content
Snippets Groups Projects
  • Facundo Domínguez's avatar
    c3a496d7
    base: Have the argument of mask restore the state. · c3a496d7
    Facundo Domínguez authored and Ben Gamari's avatar Ben Gamari committed
    The implementation of `mask` and `uninterruptibleMask` assumed so far
    that the restore argument would be called in a context with the same
    masking state as that set by `mask` or `uninterruptibleMask`.
    
    This patch has the restore argument restore the masking, whatever the
    current masking state is.
    
    Test Plan: validate
    
    Reviewers: simonmar, hvr, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie, qnikst
    
    Differential Revision: https://phabricator.haskell.org/D1327
    
    GHC Trac Issues: #10149
    c3a496d7
    History
    base: Have the argument of mask restore the state.
    Facundo Domínguez authored and Ben Gamari's avatar Ben Gamari committed
    The implementation of `mask` and `uninterruptibleMask` assumed so far
    that the restore argument would be called in a context with the same
    masking state as that set by `mask` or `uninterruptibleMask`.
    
    This patch has the restore argument restore the masking, whatever the
    current masking state is.
    
    Test Plan: validate
    
    Reviewers: simonmar, hvr, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie, qnikst
    
    Differential Revision: https://phabricator.haskell.org/D1327
    
    GHC Trac Issues: #10149
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
IO.hs 19.02 KiB