Commit 22481252 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

-Wall police.

parent ec81f295
......@@ -22,7 +22,7 @@ Copyright: 2005 Lemmih <lemmih@gmail.com>
2007-2012 Duncan Coutts <duncan@community.haskell.org>
Category: Distribution
Build-type: Simple
Cabal-Version: >= 1.8
Cabal-Version: >= 1.10
Extra-Source-Files:
README.md bash-completion/cabal bootstrap.sh changelog
......@@ -168,6 +168,7 @@ executable cabal
ghc-options: -threaded
c-sources: cbits/getnumcores.c
default-language: Haskell2010
-- Small, fast running tests.
Test-Suite unit-tests
......@@ -221,6 +222,7 @@ Test-Suite unit-tests
cc-options: -DCABAL_NO_THREADED
else
ghc-options: -threaded
default-language: Haskell2010
-- Large, system tests that build packages.
test-suite package-tests
......@@ -258,4 +260,4 @@ test-suite package-tests
ghc-options: -threaded
ghc-options: -Wall
default-language: Haskell98
default-language: Haskell2010
......@@ -56,8 +56,8 @@ main = do
putStrLn $ "Using ghc-pkg: " ++ ghcPkgPath
cwd <- getCurrentDirectory
let runTests = do
setCurrentDirectory "tests"
defaultMain $ tests cabalPath ghcPkgPath
setCurrentDirectory "tests"
defaultMain $ tests cabalPath ghcPkgPath
-- Change back to the old working directory so that the tests can be
-- repeatedly run in `cabal repl` via `:main`.
runTests `E.finally` setCurrentDirectory cwd
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