aboutsummaryrefslogtreecommitdiff
path: root/cabal-helper.cabal
diff options
context:
space:
mode:
authorVladislav Shtepin <anrock623@gmail.com>2017-11-03 22:40:37 +0300
committerDaniel Gröber <dxld@darkboxed.org>2017-11-07 13:34:40 +0100
commiteb178a5ba4c9432e951b6c206f8baf21257ecb28 (patch)
tree8889b98f1129ad9034ab71aacfb6988c0b53cf84 /cabal-helper.cabal
parentb6ebb3588358ee1bbd4b2cc114aa6650d14baaff (diff)
Fix windows build using unix-compat
Diffstat (limited to 'cabal-helper.cabal')
-rw-r--r--cabal-helper.cabal24
1 files changed, 18 insertions, 6 deletions
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