diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2015-08-21 10:12:33 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2015-08-27 02:35:41 +0200 |
commit | 890e39e4ee1c02f945b2933089c97f0975942ce9 (patch) | |
tree | 713eb661031c95c31e4a7813d8675180453fe227 /tests | |
parent | 8aaf5142f1593b1a32f220173a4196119c67c124 (diff) |
Fix travis
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Spec.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/Spec.hs b/tests/Spec.hs index a334f36..35bdcc2 100644 --- a/tests/Spec.hs +++ b/tests/Spec.hs @@ -4,10 +4,9 @@ import System.Posix.Env (setEnv) import System.Process import System.Exit import Data.Maybe -import Data.Either import Data.Version import Data.Functor -import Control.Exception +import Control.Exception as E import Control.Arrow import CabalHelper.Common @@ -73,7 +72,7 @@ main = do compilePrivatePkgDb :: Version -> IO (Either ExitCode FilePath) compilePrivatePkgDb cabalVer = do - db <- installCabal defaultOptions cabalVer `catch` + db <- installCabal defaultOptions cabalVer `E.catch` \(SomeException _) -> errorInstallCabal cabalVer "dist" compileWithPkg "." (Just db) cabalVer |