Commit c3a0557f authored by basvandijk's avatar basvandijk
Browse files

Allow Cabal to be build on ghc-6.8

parent b1ae6a1b
......@@ -84,7 +84,7 @@ import System.Directory
( createDirectoryIfMissing, doesFileExist, getCurrentDirectory
, removeFile, getDirectoryContents )
import System.Environment ( getEnvironment )
import System.Exit ( ExitCode(..), exitFailure, exitSuccess, exitWith )
import System.Exit ( ExitCode(..), exitFailure, exitWith )
import System.FilePath ( (</>), (<.>) )
import System.IO ( hClose, IOMode(..), openFile )
import System.Process ( runProcess, waitForProcess )
......@@ -306,7 +306,7 @@ test pkg_descr lbi flags = do
when (not $ PD.hasTests pkg_descr) $ do
notice verbosity "Package has no test suites."
exitSuccess
exitWith ExitSuccess
when (PD.hasTests pkg_descr && null enabledTests) $
die $ "No test suites enabled. Did you remember to configure with "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment