Permalink
Browse files

Merge pull request #10 from trofi/master

zlib-enum.cabal: drop 'test' flag in favour of Cabal test support
  • Loading branch information...
2 parents 680ac5b + 503e903 commit 675f6c2f04f88a9860a4a1574602e7f4bb5738bd @maltem committed May 21, 2014
Showing with 13 additions and 23 deletions.
  1. +13 −23 zlib-enum.cabal
View
@@ -9,19 +9,12 @@ description: zlib-enum is a stop-gap package to provide enumeratees for
zlib compression/decompression.
category: Codec, Compression, Enumerator
stability: Experimental
-cabal-version: >= 1.6
+cabal-version: >= 1.8
build-type: Simple
homepage: http://github.com/maltem/zlib-enum
--------------------------------------------------------------------------------
-flag test
- description: Build the test executable.
- default: False
-
--------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
library
- if flag(test)
- Buildable: False
build-depends: base >= 4 && < 5
, bytestring >= 0.9 && < 0.11
, transformers >= 0.2 && < 0.5
@@ -31,21 +24,18 @@ library
ghc-options: -Wall
-------------------------------------------------------------------------------
-executable zlib-enum-test
+test-suite zlib-enum-test
+ type: exitcode-stdio-1.0
main-is: test.hs
- if flag(test)
- Buildable: True
- build-depends:
- base >= 4.0 && < 5.0
- , bytestring >= 0.9 && < 0.11
- , transformers >= 0.2 && < 0.5
- , enumerator == 0.4.*
- , zlib-bindings == 0.1.*
- , test-framework >= 0.6 && < 0.9
- , test-framework-quickcheck2 >= 0.2.12.1 && < 0.4
- , QuickCheck >= 2.4 && < 2.8
- else
- Buildable: False
+ build-depends:
+ base >= 4.0 && < 5.0
+ , bytestring >= 0.9 && < 0.11
+ , transformers >= 0.2 && < 0.5
+ , enumerator == 0.4.*
+ , zlib-bindings == 0.1.*
+ , test-framework >= 0.6 && < 0.9
+ , test-framework-quickcheck2 >= 0.2.12.1 && < 0.4
+ , QuickCheck >= 2.4 && < 2.8
ghc-options: -Wall
-------------------------------------------------------------------------------

0 comments on commit 675f6c2

Please sign in to comment.