Improve .cabal files
- Add build-tool-depends, so new-build can use hspec-discover
- Add mtl bounds in tutorial (and dependency on mtl-compact)
- Add extra-source-files to tutorial, so it's buildable from sdist
commit85929abcc84b758dbadde5308e1f8f9792c0e12c
authorOleg Grenrus <oleg.grenrus@iki.fi>
dateSun 22 Oct 2017, 14:13 (9 years ago)
parentc3e4abd
doc/tutorial/tutorial.cabal+7−1
@@ -13,6 +13,9 @@ tested-with:
1313 GHC==7.10.3
1414 GHC==8.0.2
1515 GHC==8.2.1
16+extra-source-files:
17+ static/index.html
18+ static/ui.js
1619
1720library
1821 exposed-modules: ApiType
@@ -42,7 +45,8 @@ library
4245 , string-conversions
4346 , bytestring
4447 , attoparsec
45− , mtl
48+ , mtl >=2.1 && <2.3
49+ , mtl-compat
4650 , random
4751 , js-jquery
4852 , wai
@@ -61,6 +65,8 @@ test-suite spec
6165 hs-source-dirs: test
6266 main-is: Spec.hs
6367 other-modules: JavascriptSpec
68+ build-tool-depends:
69+ hspec-discover:hspec-discover
6470 build-depends: base == 4.*
6571 , tutorial
6672 , hspec
servant-client/servant-client.cabal+2
@@ -81,6 +81,8 @@ test-suite spec
8181 default-language: Haskell2010
8282 hs-source-dirs: test
8383 main-is: Spec.hs
84+ build-tool-depends:
85+ hspec-discover:hspec-discover
8486 other-modules:
8587 Servant.ClientSpec
8688 , Servant.Common.BaseUrlSpec
servant-docs/servant-docs.cabal+2
@@ -79,6 +79,8 @@ test-suite spec
7979 type: exitcode-stdio-1.0
8080 main-is: Spec.hs
8181 other-modules: Servant.DocsSpec
82+ build-tool-depends:
83+ hspec-discover:hspec-discover
8284 hs-source-dirs: test
8385 ghc-options: -Wall
8486 build-depends:
servant-foreign/servant-foreign.cabal+2
@@ -71,6 +71,8 @@ test-suite spec
7171 include-dirs: include
7272 main-is: Spec.hs
7373 other-modules: Servant.ForeignSpec
74+ build-tool-depends:
75+ hspec-discover:hspec-discover
7476 build-depends: base
7577 , hspec >= 2.1.8
7678 , servant
servant-server/servant-server.cabal+2
@@ -125,6 +125,8 @@ test-suite spec
125125 Servant.Server.UsingContextSpec.TestCombinators
126126 Servant.ServerSpec
127127 Servant.Utils.StaticFilesSpec
128+ build-tool-depends:
129+ hspec-discover:hspec-discover
128130 build-depends:
129131 base == 4.*
130132 , base-compat
servant/servant.cabal+2
@@ -122,6 +122,8 @@ test-suite spec
122122 Servant.API.ResponseHeadersSpec
123123 Servant.Utils.LinksSpec
124124 Servant.Utils.EnterSpec
125+ build-tool-depends:
126+ hspec-discover:hspec-discover
125127 build-depends:
126128 base == 4.*
127129 , base-compat