Refer to 'mask' instead of 'block' in documentation of
marlowsd at gmail.com
Thu Oct 21 08:47:01 EDT 2010
On 16/10/2010 20:03, Bas van Dijk wrote:
> Attached is a small documentation fix for Control.Exception that
> replaces references to the deprecated 'block' with the recommended
> 'mask' combinator.
Thanks! I'll integrate it.
> There's one line in the section 'Applying mask to an exception
> handler' that I'm not sure about what to do with:
> "If you need to unblock asynchronous exceptions again in the exception
> handler, just use 'unblock' as normal."
> Do we really need to point users to a deprecated function?
No - the equivalent would be
mask $ \restore -> do
restore io `catch` \e -> ... restore ...
More information about the Libraries