summaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-12-30 20:38:59 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-12-30 20:38:59 -0400
commit252376d639ca6f24ad45f598bb70fdaa463c9f9e (patch)
treece93b99bf1df91a35e0b679dfaed26a2024c91f0 /Annex
parentb538f45fafdf161c24f07562ac1bd73f1476ace9 (diff)
parent230bc8334bb7a947a61a0e213c51fca18decde1c (diff)
Merge branch 'master' into autosync
Diffstat (limited to 'Annex')
-rw-r--r--Annex/Exception.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Annex/Exception.hs b/Annex/Exception.hs
index c147439a1..cb36d1bdb 100644
--- a/Annex/Exception.hs
+++ b/Annex/Exception.hs
@@ -11,8 +11,8 @@ module Annex.Exception (
throw,
) where
-import Control.Exception.Control (handle)
-import Control.Monad.IO.Control (liftIOOp)
+import Control.Exception.Lifted (handle)
+import Control.Monad.Trans.Control (liftBaseOp)
import Control.Exception hiding (handle, throw)
import Common.Annex
@@ -20,7 +20,7 @@ import Common.Annex
{- Runs an Annex action, with setup and cleanup both in the IO monad. -}
bracketIO :: IO c -> (c -> IO b) -> Annex a -> Annex a
bracketIO setup cleanup go =
- liftIOOp (Control.Exception.bracket setup cleanup) (const go)
+ liftBaseOp (Control.Exception.bracket setup cleanup) (const go)
{- Throws an exception in the Annex monad. -}
throw :: Control.Exception.Exception e => e -> Annex a