diff options
Diffstat (limited to 'Presence/ControlMaybe.hs')
-rw-r--r-- | Presence/ControlMaybe.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Presence/ControlMaybe.hs b/Presence/ControlMaybe.hs index 37f6f93c..69a38f71 100644 --- a/Presence/ControlMaybe.hs +++ b/Presence/ControlMaybe.hs | |||
@@ -15,5 +15,9 @@ whenJust acn f = do | |||
15 | catchIO_ :: IO a -> IO a -> IO a | 15 | catchIO_ :: IO a -> IO a -> IO a |
16 | catchIO_ a h = Exception.catch a (\(_ :: IOException) -> h) | 16 | catchIO_ a h = Exception.catch a (\(_ :: IOException) -> h) |
17 | 17 | ||
18 | catchIO :: IO a -> (IOException -> IO a) -> IO a | ||
19 | catchIO body handler = Exception.catch body handler | ||
20 | |||
18 | handleIO_ = flip catchIO_ | 21 | handleIO_ = flip catchIO_ |
22 | handleIO = flip catchIO | ||
19 | 23 | ||