summaryrefslogtreecommitdiff
path: root/slackbuilder.cabal
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2023-09-21 23:51:02 +0200
committerEugen Wissner <belka@caraus.de>2023-09-21 23:51:02 +0200
commita7114618c1290b00745db69ef0e60b2e848a662d (patch)
tree40f49cf43c7f443b5e01505d36474c0f3514ba48 /slackbuilder.cabal
parent77c9a2ab54b697f37e21b76c1fd82fc42dc4792e (diff)
downloadslackbuilder-a7114618c1290b00745db69ef0e60b2e848a662d.tar.gz
Combine test and application dependencies
Diffstat (limited to 'slackbuilder.cabal')
-rw-r--r--slackbuilder.cabal14
1 files changed, 10 insertions, 4 deletions
diff --git a/slackbuilder.cabal b/slackbuilder.cabal
index 6244a58..a66a418 100644
--- a/slackbuilder.cabal
+++ b/slackbuilder.cabal
@@ -15,7 +15,13 @@ maintainer: belka@caraus.de
category: Build
extra-source-files: CHANGELOG.md
+common dependencies
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
+ build-depends:
+ base ^>= 4.16.4.0,
+
executable slackbuilder
+ import: dependencies
main-is: Main.hs
other-modules:
@@ -37,7 +43,6 @@ executable slackbuilder
TypeApplications
build-depends:
aeson ^>= 2.2.0,
- base ^>= 4.16.4.0,
bytestring ^>= 0.11.0,
conduit ^>= 1.3.5,
cryptonite >= 0.30,
@@ -56,14 +61,15 @@ executable slackbuilder
hs-source-dirs: app
default-language: Haskell2010
- ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
-
test-suite slackbuilder-test
+ import: dependencies
type: exitcode-stdio-1.0
main-is: Spec.hs
+
+ other-modules:
+ SlackBuilder.PackageSpec
hs-source-dirs:
tests
- ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
default-language: Haskell2010
build-depends:
hspec >= 2.10.9 && < 2.12