• Facundo Domínguez's avatar
    base: Have the argument of mask restore the state. · 2b25a589
    Facundo Domínguez authored
    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
    2b25a589
all.T 8.19 KB