aboutsummaryrefslogtreecommitdiff
path: root/cabal-helper.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'cabal-helper.cabal')
-rw-r--r--cabal-helper.cabal68
1 files changed, 17 insertions, 51 deletions
diff --git a/cabal-helper.cabal b/cabal-helper.cabal
index 1d6bbf3..b7b5f73 100644
--- a/cabal-helper.cabal
+++ b/cabal-helper.cabal
@@ -88,60 +88,24 @@ library
hs-source-dirs: lib, src
exposed-modules: Distribution.Helper
other-modules:
- CabalHelper.Shared.InterfaceTypes
- CabalHelper.Shared.Sandbox
- Paths_cabal_helper
- autogen-modules: Paths_cabal_helper
-
- ghc-options: -Wall
-
- -- well actually this is a "runtime"-tool-depends :)
- build-tool-depends: cabal-helper:cabal-helper-wrapper
-
- build-depends: base < 5 && >= 4.7
- build-depends: Cabal < 2.5 && >= 2.0 || < 1.26 && >= 1.14
- , cabal-plan < 0.5 && >= 0.3.0.0
- , containers < 1 && >= 0.5.5.1
- , directory < 1.4 && >= 1.2.1.0
- , 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
- if !os(windows)
- build-depends: unix < 2.8 && >= 2.5.1.1
- build-depends: unix-compat < 0.6 && >= 0.4.3.1
- , semigroupoids < 5.3 && >= 5.2
-
-
-
-executable cabal-helper-wrapper
- main-is: CabalHelper/Compiletime/Wrapper.hs
- if flag(dev)
- ghc-options: -Wall
- scope: private
-
- -- Common c-h-wrapper-fields -- See [Note test dependencies]
- default-language: Haskell2010
- default-extensions: NondecreasingIndentation
- other-extensions: TemplateHaskell
- hs-source-dirs: src
- other-modules:
CabalHelper.Compiletime.Compat.Environment
CabalHelper.Compiletime.Compat.ProgramDb
CabalHelper.Compiletime.Compat.Version
CabalHelper.Compiletime.Compile
CabalHelper.Compiletime.Data
- CabalHelper.Compiletime.Log
CabalHelper.Compiletime.Types
CabalHelper.Shared.Common
CabalHelper.Shared.InterfaceTypes
CabalHelper.Shared.Sandbox
Paths_cabal_helper
- build-tool-depends: cabal-install:cabal
+
+ autogen-modules:
+ Paths_cabal_helper
+
+ ghc-options: -Wall
+
build-depends: base < 5 && >= 4.7
- if os(windows)
- build-depends: base >= 4.7
- build-depends: Cabal < 2.5 && >= 2.0 || < 1.26 && >= 1.14
+ build-depends: Cabal < 2.5 && >= 2.0 || < 1.26 && >= 1.14
, cabal-plan < 0.5 && >= 0.3.0.0
, containers < 1 && >= 0.5.5.1
, bytestring < 0.11 && >= 0.9.2.1
@@ -150,6 +114,7 @@ executable cabal-helper-wrapper
, mtl < 2.3 && >= 2.0
, process < 1.7 && >= 1.1.0.1
, pretty-show < 1.9 && >= 1.8.1
+ , semigroupoids < 5.3 && >= 5.2
, text < 1.3 && >= 1.0.0.0
, template-haskell < 2.14 && >= 2.7.0.0
, temporary < 1.3 && >= 1.2.1
@@ -158,7 +123,9 @@ executable cabal-helper-wrapper
build-depends: unix < 2.8 && >= 2.5.1.1
build-depends: unix-compat < 0.6 && >= 0.4.3.1
, utf8-string < 1.1 && >= 1.0.1.1
+
build-tools: cabal
+ build-tool-depends: cabal-install:cabal
test-suite compile-test
@@ -166,9 +133,8 @@ test-suite compile-test
main-is: CompileTest.hs
hs-source-dirs: tests
ghc-options: -Wall
- build-tools: cabal
- -- Instantiate common c-h-wrapper-fields -- See [Note test dependencies]
+ -- Common c-h-wrapper-fields -- See [Note test dependencies]
default-language: Haskell2010
default-extensions: NondecreasingIndentation
other-extensions: TemplateHaskell
@@ -179,13 +145,13 @@ test-suite compile-test
CabalHelper.Compiletime.Compat.Version
CabalHelper.Compiletime.Compile
CabalHelper.Compiletime.Data
- CabalHelper.Compiletime.Log
CabalHelper.Compiletime.Types
CabalHelper.Shared.Common
CabalHelper.Shared.InterfaceTypes
CabalHelper.Shared.Sandbox
Paths_cabal_helper
build-tool-depends: cabal-install:cabal
+ build-tools: cabal
build-depends: base < 5 && >= 4.7
if os(windows)
build-depends: base >= 4.7
@@ -206,7 +172,6 @@ test-suite compile-test
build-depends: unix < 2.8 && >= 2.5.1.1
build-depends: unix-compat < 0.6 && >= 0.4.3.1
, utf8-string < 1.1 && >= 1.0.1.1
- build-tools: cabal
test-suite ghc-session
@@ -230,13 +195,13 @@ test-suite ghc-session
CabalHelper.Compiletime.Compat.Version
CabalHelper.Compiletime.Compile
CabalHelper.Compiletime.Data
- CabalHelper.Compiletime.Log
CabalHelper.Compiletime.Types
CabalHelper.Shared.Common
CabalHelper.Shared.InterfaceTypes
CabalHelper.Shared.Sandbox
Paths_cabal_helper
build-tool-depends: cabal-install:cabal
+ build-tools: cabal
build-depends: base < 5 && >= 4.7
if os(windows)
build-depends: base >= 4.7
@@ -257,7 +222,7 @@ test-suite ghc-session
build-depends: unix < 2.8 && >= 2.5.1.1
build-depends: unix-compat < 0.6 && >= 0.4.3.1
, utf8-string < 1.1 && >= 1.0.1.1
- build-tools: cabal
+
executable cabal-helper-main
@@ -269,9 +234,10 @@ executable cabal-helper-main
CabalHelper.Shared.Common
CabalHelper.Shared.InterfaceTypes
CabalHelper.Shared.Sandbox
+ CabalHelper.Shared.Common
- -- This component is usually built at runtime by cabal-helper-wrapper but
- -- during development it's convinient to build it via cabal
+ -- This component is usually built at runtime but during development it's
+ -- convinient to build it via cabal
if flag(dev)
buildable: True
else