Skip to content

Commit

Permalink
Fix build error on GHC 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Rosén committed Oct 11, 2014
1 parent 027719c commit be117d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/HipSpec/ATP/Invoke.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ import HipSpec.Utils.ZEncode

import System.Directory (createDirectoryIfMissing,doesFileExist,getTemporaryDirectory)
import System.FilePath ((</>),(<.>))
import Control.Exception (catch,SomeException)

import Control.Exception (SomeException)
import qualified Control.Exception as E
-- GHC 7.4 has catch from both Prelude and this module, so we qualify E.catch

{-# ANN module "HLint: ignore Use camelCase" #-}

Expand Down Expand Up @@ -106,7 +109,7 @@ promiseProof env@InvokeEnv{store} ob@Obligation{..} timelimit prover@Prover{..}
ex <- doesFileExist cache_file
createDirectoryIfMissing True cache_dir
unless ex $ writeFile cache_file (if r then "1" else "0")
`catch` \ (_ :: SomeException) -> return ()
`E.catch` \ (_ :: SomeException) -> return ()


filepath <- liftIO $ case store of
Expand Down

0 comments on commit be117d3

Please sign in to comment.