From eb178a5ba4c9432e951b6c206f8baf21257ecb28 Mon Sep 17 00:00:00 2001 From: Vladislav Shtepin Date: Fri, 3 Nov 2017 22:40:37 +0300 Subject: Fix windows build using unix-compat --- cabal-helper.cabal | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'cabal-helper.cabal') diff --git a/cabal-helper.cabal b/cabal-helper.cabal index 335e3fe..7788130 100644 --- a/cabal-helper.cabal +++ b/cabal-helper.cabal @@ -56,13 +56,17 @@ library Paths_cabal_helper ghc-options: -Wall build-depends: base < 5 && >= 4.5 - , Cabal < 2.1 && >= 2.0 || < 1.26 && >= 1.14 + if os(windows) + build-depends: base >= 4.7 + build-depends: Cabal < 2.1 && >= 2.0 || < 1.26 && >= 1.14 , directory < 1.4 && >= 1.1.0.2 , filepath < 1.5 && >= 1.3.0.0 , transformers < 0.6 && >= 0.3.0.0 , mtl < 2.3 && >= 2.0 , process < 1.7 && >= 1.1.0.1 - , unix < 2.8 && >= 2.5.1.1 + if !os(windows) + build-depends: unix < 2.8 && >= 2.5.1.1 + build-depends: unix-compat < 0.5 && >= 0.4.3.1 , semigroupoids < 5.3 && >= 5.2.1 , ghc-prim @@ -94,7 +98,9 @@ executable cabal-helper-wrapper -- Remember to copy to compile-test! build-depends: base < 5 && >= 4.5 - , Cabal < 2.1 && >= 2.0 || < 1.26 && >= 1.14 + if os(windows) + build-depends: base >= 4.7 + build-depends: Cabal < 2.1 && >= 2.0 || < 1.26 && >= 1.14 , bytestring < 0.11 && >= 0.9.2.1 , directory < 1.4 && >= 1.1.0.2 , exceptions < 0.9 && >= 0.8.3 @@ -104,7 +110,9 @@ executable cabal-helper-wrapper , template-haskell < 2.13 && >= 2.7.0.0 , temporary < 1.3 && >= 1.2.0.4 , transformers < 0.6 && >= 0.3.0.0 - , unix < 2.8 && >= 2.5.1.1 + if !os(windows) + build-depends: unix < 2.8 && >= 2.5.1.1 + build-depends: unix-compat < 0.5 && >= 0.4.3.1 , utf8-string < 1.1 && >= 1.0.1.1 , ghc-prim @@ -129,7 +137,9 @@ test-suite compile-test -- Same as cabal-helper-wrapper build-depends: base < 5 && >= 4.5 - , Cabal < 2.1 && >= 2.0 || < 1.26 && >= 1.14 + if os(windows) + build-depends: base >= 4.7 + build-depends: Cabal < 2.1 && >= 2.0 || < 1.26 && >= 1.14 , bytestring < 0.11 && >= 0.9.2.1 , directory < 1.4 && >= 1.1.0.2 , exceptions < 0.9 && >= 0.8.3 @@ -139,7 +149,9 @@ test-suite compile-test , template-haskell < 2.13 && >= 2.7.0.0 , temporary < 1.3 && >= 1.2.0.4 , transformers < 0.6 && >= 0.3.0.0 - , unix < 2.8 && >= 2.5.1.1 + if !os(windows) + build-depends: unix < 2.8 && >= 2.5.1.1 + build-depends: unix-compat < 0.5 && >= 0.4.3.1 , utf8-string < 1.1 && >= 1.0.1.1 , ghc-prim -- cgit v1.2.3