[commit: packages/time] format-widths, ghc, master: test: prevent building unix on Windows (1e3893c)

git at git.haskell.org git at git.haskell.org
Fri Apr 21 16:56:58 UTC 2017


Repository : ssh://git@git.haskell.org/time

On branches: format-widths,ghc,master
Link       : http://git.haskell.org/packages/time.git/commitdiff/1e3893c71658c631babe768d75dbe849727d154c

>---------------------------------------------------------------

commit 1e3893c71658c631babe768d75dbe849727d154c
Author: Ashley Yakeley <ashley at yakeley.org>
Date:   Sat Feb 4 02:59:21 2017 -0800

    test: prevent building unix on Windows


>---------------------------------------------------------------

1e3893c71658c631babe768d75dbe849727d154c
 time.cabal | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/time.cabal b/time.cabal
index f33380e..6fb2731 100644
--- a/time.cabal
+++ b/time.cabal
@@ -180,11 +180,12 @@ test-suite test-unix
         base,
         deepseq,
         time,
-        unix,
         QuickCheck,
         tasty,
         tasty-hunit,
         tasty-quickcheck
+    if !os(windows)
+        build-depends: unix
     main-is: Main.hs
     other-modules:
         Test.TestUtil



More information about the ghc-commits mailing list