From 1a7467373ba59241c582c93a5e46ad7d4fb38388 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Wed, 21 Sep 2016 23:29:44 +0100 Subject: [PATCH] Make 'tests' a test-suite. See https://github.com/haskell/cabal/issues/3881 for gory details. --- hpqtypes.cabal | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/hpqtypes.cabal b/hpqtypes.cabal index c1b4cac..4cccf27 100644 --- a/hpqtypes.cabal +++ b/hpqtypes.cabal @@ -63,10 +63,6 @@ Source-repository head Type: git Location: git@github.com:scrive/log.git -Flag tests - description: Build test suite - default: False - library exposed-modules: Data.Monoid.Utils , Database.PostgreSQL.PQTypes @@ -173,13 +169,9 @@ library , TypeFamilies , TypeOperators , UndecidableInstances - -Executable tests - if flag(tests) - buildable: True - else - buildable: False +test-suite hpqtypes-tests + type: exitcode-stdio-1.0 ghc-options: -O2 -Wall -funbox-strict-fields -threaded hs-source-dirs: test