From fa772dad6752b77d55a521322aa9228a35b9f977 Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 25 Apr 2016 22:59:31 -0400 Subject: backport testsuite to base 4.6.0 --- kiki.cabal | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'kiki.cabal') diff --git a/kiki.cabal b/kiki.cabal index c73eb67..3810355 100644 --- a/kiki.cabal +++ b/kiki.cabal @@ -23,6 +23,9 @@ Flag needlocale Description: Link against old-locale package for older versions of the time package. Default: False +Flag unixEnv + Default: False + Executable kiki Main-is: kiki.hs -- base >=4.6 due to use of readEither in KikiD.Message @@ -126,8 +129,7 @@ Test-suite testkiki type: exitcode-stdio-1.0 Main-is: testkiki.hs hs-source-dirs: testkiki - Build-depends: base - , Cabal + Build-depends: Cabal , hspec , process , directory @@ -135,4 +137,7 @@ Test-suite testkiki , filepath , bytestring , kiki - + if flag(unixEnv) + Build-depends: base < 4.7.0, unix + else + Build-depends: base >= 4.7.0 -- cgit v1.2.3