aboutsummaryrefslogtreecommitdiff
path: root/cabal-helper.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'cabal-helper.cabal')
-rw-r--r--cabal-helper.cabal23
1 files changed, 20 insertions, 3 deletions
diff --git a/cabal-helper.cabal b/cabal-helper.cabal
index 384a849..db777ad 100644
--- a/cabal-helper.cabal
+++ b/cabal-helper.cabal
@@ -120,10 +120,13 @@ common build-deps
, temporary < 1.3 && >= 1.2.1
, time < 1.9 && >= 1.6.0.1
, transformers < 0.6 && >= 0.5.2.0
- if !os(windows)
+ , utf8-string < 1.1 && >= 1.0.1.1
+ if os(windows)
+ build-depends: Win32 < 2.9 && >= 2.8.3.0
+ else
build-depends: unix < 2.8 && >= 2.7.2.1
build-depends: unix-compat < 0.6 && >= 0.4.3.1
- , utf8-string < 1.1 && >= 1.0.1.1
+
if flag(dev)
ghc-options: -Wall
@@ -132,6 +135,7 @@ library c-h-internal
import: build-deps, extensions
exposed-modules:
CabalHelper.Compiletime.Cabal
+ CabalHelper.Compiletime.CompPrograms
CabalHelper.Compiletime.Compat.Environment
CabalHelper.Compiletime.Compat.Version
CabalHelper.Compiletime.Compat.Parsec
@@ -153,6 +157,12 @@ library c-h-internal
Paths_cabal_helper
autogen-modules:
Paths_cabal_helper
+ exposed-modules:
+ Symlink
+ if os(windows)
+ hs-source-dirs: os/win
+ else
+ hs-source-dirs: os/posix
hs-source-dirs: src
library
@@ -174,7 +184,14 @@ test-suite compile-test
ghc-options: -Wall
build-depends: c-h-internal
-
+test-suite programs-test
+ import: build-deps, extensions
+ type: exitcode-stdio-1.0
+ main-is: ProgramsTest.hs
+ hs-source-dirs: tests
+ ghc-options: -Wall
+ build-depends: c-h-internal
+ , pretty-show
test-suite ghc-session
import: build-deps, extensions