summaryrefslogtreecommitdiff
path: root/Presence/ControlMaybe.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Presence/ControlMaybe.hs')
-rw-r--r--Presence/ControlMaybe.hs4
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
15catchIO_ :: IO a -> IO a -> IO a 15catchIO_ :: IO a -> IO a -> IO a
16catchIO_ a h = Exception.catch a (\(_ :: IOException) -> h) 16catchIO_ a h = Exception.catch a (\(_ :: IOException) -> h)
17 17
18catchIO :: IO a -> (IOException -> IO a) -> IO a
19catchIO body handler = Exception.catch body handler
20
18handleIO_ = flip catchIO_ 21handleIO_ = flip catchIO_
22handleIO = flip catchIO
19 23