diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-30 17:29:11 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-30 17:29:11 -0400 |
commit | 583e8118d4e77fc4f76474717a821c56e3cf772d (patch) | |
tree | 17a0ba3d1cb04a37ad454fb195cb452960065c16 | |
parent | fad1616e68b2219a7e1a6c4b7e1cfe8485ad8c2b (diff) |
ok, let's just use extensible-exceptions
-rw-r--r-- | Backend.hs | 3 | ||||
-rw-r--r-- | Portability.hs | 16 | ||||
-rw-r--r-- | Remotes.hs | 3 |
3 files changed, 2 insertions, 20 deletions
diff --git a/Backend.hs b/Backend.hs index 59df37fc4..00b2833e0 100644 --- a/Backend.hs +++ b/Backend.hs @@ -27,7 +27,7 @@ module Backend ( ) where import Control.Monad.State -import Control.Exception +import Control.Exception.Extensible import System.Directory import System.FilePath import Data.String.Utils @@ -39,7 +39,6 @@ import qualified Annex import Utility import Types import qualified TypeInternals as Internals -import Portability {- List of backends in the order to try them when storing a new key. -} list :: Annex [Backend] diff --git a/Portability.hs b/Portability.hs deleted file mode 100644 index 91c8334cc..000000000 --- a/Portability.hs +++ /dev/null @@ -1,16 +0,0 @@ -{- git-annex - Nasty portability workarounds. -} -module Portability (SomeException) where - -import Control.Exception - --- old ghc does not know about SomeException. --- --- http://haskell.1045720.n5.nabble.com/Help-using-catch-in-6-10-td3127921.html#a3127921 --- --- This needs ghc -cpp --- --- This would be better, but then users of old ghc would need to install it. --- http://hackage.haskell.org/package/extensible-exceptions -#if __GLASGOW_HASKELL__ < 610 -type SomeException = Exception -#endif diff --git a/Remotes.hs b/Remotes.hs index 32016b775..27bd39ead 100644 --- a/Remotes.hs +++ b/Remotes.hs @@ -17,7 +17,7 @@ module Remotes ( ) where import IO (bracket_) -import Control.Exception hiding (bracket_) +import Control.Exception.Extensible hiding (bracket_) import Control.Monad.State (liftIO) import Control.Monad (filterM) import qualified Data.Map as Map @@ -40,7 +40,6 @@ import Locations import UUID import Utility import qualified Core -import Portability {- Human visible list of remotes. -} list :: [Git.Repo] -> String |