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
This commit is contained in:
parent
781ea66a62
commit
2d6bf5055b
7 changed files with 24 additions and 1 deletions
|
@ -8,6 +8,14 @@ author: Servant Contributors
|
|||
maintainer: haskell-servant-maintainers@googlegroups.com
|
||||
build-type: Simple
|
||||
cabal-version: >=1.10
|
||||
tested-with:
|
||||
GHC==7.8.4
|
||||
GHC==7.10.3
|
||||
GHC==8.0.2
|
||||
GHC==8.2.1
|
||||
extra-source-files:
|
||||
static/index.html
|
||||
static/ui.js
|
||||
|
||||
library
|
||||
exposed-modules: ApiType
|
||||
|
@ -38,7 +46,8 @@ library
|
|||
, string-conversions
|
||||
, bytestring
|
||||
, attoparsec
|
||||
, mtl
|
||||
, mtl >=2.1 && <2.3
|
||||
, mtl-compat
|
||||
, random
|
||||
, js-jquery
|
||||
, wai
|
||||
|
@ -57,6 +66,8 @@ test-suite spec
|
|||
hs-source-dirs: test
|
||||
main-is: Spec.hs
|
||||
other-modules: JavascriptSpec
|
||||
build-tool-depends:
|
||||
hspec-discover:hspec-discover
|
||||
build-depends: base == 4.*
|
||||
, tutorial
|
||||
, hspec
|
||||
|
|
|
@ -70,5 +70,7 @@ test-suite spec
|
|||
, servant-client-core
|
||||
, hspec == 2.*
|
||||
, QuickCheck >= 2.7 && < 2.11
|
||||
build-tool-depends:
|
||||
hspec-discover:hspec-discover
|
||||
other-modules:
|
||||
Servant.Client.Core.Internal.BaseUrlSpec
|
||||
|
|
|
@ -64,6 +64,8 @@ test-suite spec
|
|||
default-language: Haskell2010
|
||||
hs-source-dirs: test
|
||||
main-is: Spec.hs
|
||||
build-tool-depends:
|
||||
hspec-discover:hspec-discover
|
||||
other-modules:
|
||||
Servant.ClientSpec
|
||||
build-depends:
|
||||
|
|
|
@ -75,6 +75,8 @@ test-suite spec
|
|||
type: exitcode-stdio-1.0
|
||||
main-is: Spec.hs
|
||||
other-modules: Servant.DocsSpec
|
||||
build-tool-depends:
|
||||
hspec-discover:hspec-discover
|
||||
hs-source-dirs: test
|
||||
ghc-options: -Wall
|
||||
build-depends:
|
||||
|
|
|
@ -65,6 +65,8 @@ test-suite spec
|
|||
include-dirs: include
|
||||
main-is: Spec.hs
|
||||
other-modules: Servant.ForeignSpec
|
||||
build-tool-depends:
|
||||
hspec-discover:hspec-discover
|
||||
build-depends: base
|
||||
, hspec >= 2.1.8
|
||||
, servant
|
||||
|
|
|
@ -120,6 +120,8 @@ test-suite spec
|
|||
Servant.Server.UsingContextSpec.TestCombinators
|
||||
Servant.ServerSpec
|
||||
Servant.Utils.StaticFilesSpec
|
||||
build-tool-depends:
|
||||
hspec-discover:hspec-discover
|
||||
build-depends:
|
||||
base == 4.*
|
||||
, base-compat
|
||||
|
|
|
@ -118,6 +118,8 @@ test-suite spec
|
|||
Servant.API.ResponseHeadersSpec
|
||||
Servant.Utils.LinksSpec
|
||||
Servant.Utils.EnterSpec
|
||||
build-tool-depends:
|
||||
hspec-discover:hspec-discover
|
||||
build-depends:
|
||||
base == 4.*
|
||||
, base-compat
|
||||
|
|
Loading…
Reference in a new issue