git.iko.soy/typeable/servant
on master help sign in
Merge pull request #895 from phadej/lower-bounds

Bump lower bounds

commit030cbbc363a00a9b0ff90290f8c87c65bd7692e1 authorOleg Grenrus <oleg.grenrus@iki.fi> dateThu 25 Jan 2018, 18:42 (9 years ago) parentbf289ccf9963d3
10 files changed+346−218
doc/tutorial/tutorial.cabal+49−36 servant-client-core/servant-client-core.cabal+40−20 servant-client/servant-client.cabal+46−27 servant-docs/servant-docs.cabal+40−20 servant-foreign/servant-foreign.cabal+32−11 servant-foreign/test/Servant/ForeignSpec.hs+1−1 servant-server/servant-server.cabal+73−57 servant/servant.cabal+61−45 servant/test/Servant/Utils/LinksSpec.hs+1−1 stack.yaml+3
doc/tutorial/tutorial.cabal+49−36
@@ -22,47 +22,60 @@ extra-source-files:
2222 static/ui.js
2323
2424library
25+ default-language: Haskell2010
26+ ghc-options: -Wall -pgmL markdown-unlit
2527 exposed-modules: ApiType
2628 , Authentication
2729 , Client
2830 , Docs
2931 , Javascript
3032 , Server
31− build-depends: base == 4.*
32− , base-compat
33− , text
34− , aeson
35− , aeson-compat
36− , blaze-html
37− , directory
38− , blaze-markup
39− , containers
40− , servant == 0.12.*
41− , servant-server == 0.12.*
42− , servant-client == 0.12.*
43− , servant-docs >= 0.11.1 && <0.12
44− , servant-js >= 0.9 && <0.10
45− , warp
46− , http-api-data
47− , http-media
48− , lucid
49− , time
50− , string-conversions
51− , bytestring
52− , attoparsec
53− , mtl >=2.1 && <2.3
54− , mtl-compat
55− , random
56− , js-jquery
57− , wai
58− , http-types
59− , transformers
60− , markdown-unlit >= 0.4
61− , http-client
62− , cookie
63− default-language: Haskell2010
64− ghc-options: -Wall -pgmL markdown-unlit
65− build-tool-depends: markdown-unlit:markdown-unlit
33+
34+ -- Packages `servant` depends on.
35+ -- We don't need to specify bounds here as this package is never released.
36+ build-depends:
37+ base >= 4.7 && <4.11
38+ , aeson
39+ , aeson-compat
40+ , attoparsec
41+ , base-compat
42+ , bytestring
43+ , containers
44+ , directory
45+ , http-api-data
46+ , http-client
47+ , http-media
48+ , http-types
49+ , mtl
50+ , string-conversions
51+ , text
52+ , transformers
53+ , wai
54+ , warp
55+
56+ -- Servant dependencies
57+ build-depends:
58+ servant
59+ , servant-server
60+ , servant-client
61+ , servant-docs
62+
63+ -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
64+ -- Here can be exceptions if we really need features from the newer versions.
65+ build-depends:
66+ blaze-html >= 0.9.0.1 && < 0.10
67+ , blaze-markup >= 0.8.0.0 && < 0.9
68+ , cookie >= 0.4.3 && < 0.5
69+ , js-jquery >= 3.2.1 && < 3.3
70+ , lucid >= 2.9.9 && < 2.10
71+ , mtl-compat >= 0.2.1 && < 0.3
72+ , random >= 1.1 && < 1.2
73+ , servant-js >= 0.9 && < 0.10
74+ , time >= 1.4.2 && < 1.9
75+
76+ -- For legacy tools, we need to specify build-depends too
77+ build-depends: markdown-unlit >= 0.4.1 && <0.5
78+ build-tool-depends: markdown-unlit:markdown-unlit >= 0.4.1 && <0.5
6679
6780test-suite spec
6881 type: exitcode-stdio-1.0
@@ -73,7 +86,7 @@ test-suite spec
7386 other-modules: JavascriptSpec
7487 build-tool-depends:
7588 hspec-discover:hspec-discover
76− build-depends: base == 4.*
89+ build-depends: base
7790 , tutorial
7891 , hspec
7992 , hspec-wai
servant-client-core/servant-client-core.cabal+40−20
@@ -39,25 +39,39 @@ library
3939 Servant.Client.Core.Internal.HasClient
4040 Servant.Client.Core.Internal.Request
4141 Servant.Client.Core.Internal.RunClient
42+
43+ -- Bundled with GHC: Lower bound to not force re-installs
44+ -- text and mtl are bundled starting with GHC-8.4
45+ --
46+ -- note: mtl lower bound is so low because of GHC-7.8
4247 build-depends:
4348 base >= 4.7 && < 4.11
44− , base-compat >= 0.9.1 && < 0.10
45− , base64-bytestring >= 1.0.0.1 && < 1.1
46− , bytestring >= 0.10 && < 0.11
47− , containers >= 0.5 && < 0.6
48− , exceptions >= 0.8 && < 0.9
49− , generics-sop >= 0.1.0.0 && < 0.4
50− , http-api-data >= 0.3.6 && < 0.4
51− , http-media >= 0.6.2 && < 0.8
52− , http-types >= 0.8.6 && < 0.12
49+ , bytestring >= 0.10.4.0 && < 0.11
50+ , containers >= 0.5.5.1 && < 0.6
5351 , mtl >= 2.1 && < 2.3
54− , network-uri >= 2.6 && < 2.7
55− , safe >= 0.3.9 && < 0.4
56− , servant == 0.12.*
57− , text >= 1.2 && < 1.3
52+ , text >= 1.2.3.0 && < 1.3
53+
5854 if !impl(ghc >= 8.0)
5955 build-depends:
60− semigroups >=0.16.2.2 && <0.19
56+ semigroups >=0.18.3 && <0.19
57+
58+ -- Servant dependencies
59+ build-depends:
60+ servant == 0.12.*
61+
62+ -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
63+ -- Here can be exceptions if we really need features from the newer versions.
64+ build-depends:
65+ base-compat >= 0.9.3 && < 0.10
66+ , base64-bytestring >= 1.0.0.1 && < 1.1
67+ , exceptions >= 0.8.3 && < 0.9
68+ , generics-sop >= 0.3.1.0 && < 0.4
69+ , http-api-data >= 0.3.7.1 && < 0.4
70+ , http-media >= 0.7.1.1 && < 0.8
71+ , http-types >= 0.9.1 && < 0.12
72+ , network-uri >= 2.6.1.0 && < 2.7
73+ , safe >= 0.3.15 && < 0.4
74+
6175 hs-source-dirs: src
6276 default-language: Haskell2010
6377 ghc-options: -Wall
@@ -69,14 +83,20 @@ test-suite spec
6983 default-language: Haskell2010
7084 hs-source-dirs: test
7185 main-is: Spec.hs
86+ other-modules:
87+ Servant.Client.Core.Internal.BaseUrlSpec
88+
89+ -- Dependencies inherited from the library. No need to specify bounds.
7290 build-depends:
7391 base
7492 , base-compat
75− , deepseq
7693 , servant-client-core
77− , hspec == 2.*
78− , QuickCheck >= 2.7 && < 2.11
94+
95+ -- Additonal dependencies
96+ build-depends:
97+ deepseq >= 1.3.0.2 && <1.5
98+ , hspec >= 2.4.4 && <2.5
99+ , QuickCheck >= 2.10.1 && < 2.12
100+
79101 build-tool-depends:
80− hspec-discover:hspec-discover
81− other-modules:
82− Servant.Client.Core.Internal.BaseUrlSpec
102+ hspec-discover:hspec-discover >= 2.4.4 && <2.5
servant-client/servant-client.cabal+46−27
@@ -35,26 +35,39 @@ library
3535 exposed-modules:
3636 Servant.Client
3737 Servant.Client.Internal.HttpClient
38+
39+ -- Bundled with GHC: Lower bound to not force re-installs
40+ -- text and mtl are bundled starting with GHC-8.4
41+ --
42+ -- note: mtl lower bound is so low because of GHC-7.8
3843 build-depends:
3944 base >= 4.7 && < 4.11
40− , base-compat >= 0.9.1 && < 0.10
41− , bytestring >= 0.10 && < 0.11
42− , aeson >= 0.7 && < 1.3
43− , attoparsec >= 0.12 && < 0.14
44− , containers >= 0.5 && < 0.6
45− , http-client >= 0.4.30 && < 0.6
46− , http-client-tls >= 0.2.2 && < 0.4
47− , http-media >= 0.6.2 && < 0.8
48− , http-types >= 0.8.6 && < 0.12
49− , exceptions >= 0.8 && < 0.9
50− , monad-control >= 1.0.0.4 && < 1.1
45+ , bytestring >= 0.10.4.0 && < 0.11
46+ , containers >= 0.5.5.1 && < 0.6
5147 , mtl >= 2.1 && < 2.3
52− , semigroupoids >= 4.3 && < 5.3
53− , servant-client-core == 0.12.*
54− , text >= 1.2 && < 1.3
55− , transformers >= 0.3 && < 0.6
48+ , text >= 1.2.3.0 && < 1.3
49+ , transformers >= 0.3.0.0 && < 0.6
50+
51+ -- Servant dependencies
52+ build-depends:
53+ servant-client-core == 0.12.*
54+
55+ -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
56+ -- Here can be exceptions if we really need features from the newer versions.
57+ build-depends:
58+ aeson >= 1.2.3.0 && < 1.3
59+ , base-compat >= 0.9.3 && < 0.10
60+ , attoparsec >= 0.13.2.0 && < 0.14
61+ , http-client >= 0.5.7.1 && < 0.6
62+ , http-client-tls >= 0.3.5.1 && < 0.4
63+ , http-media >= 0.7.1.1 && < 0.8
64+ , http-types >= 0.9.1 && < 0.12
65+ , exceptions >= 0.8.3 && < 0.9
66+ , monad-control >= 1.0.0.4 && < 1.1
67+ , semigroupoids >= 5.2.1 && < 5.3
5668 , transformers-base >= 0.4.4 && < 0.5
57− , transformers-compat >= 0.4 && < 0.6
69+ , transformers-compat >= 0.5.1 && < 0.6
70+
5871 hs-source-dirs: src
5972 default-language: Haskell2010
6073 ghc-options: -Wall
@@ -68,34 +81,40 @@ test-suite spec
6881 default-language: Haskell2010
6982 hs-source-dirs: test
7083 main-is: Spec.hs
71− build-tool-depends:
72− hspec-discover:hspec-discover
7384 other-modules:
7485 Servant.ClientSpec
7586 Servant.StreamSpec
87+
88+ -- Dependencies inherited from the library. No need to specify bounds.
7689 build-depends:
77− base == 4.*
90+ base
7891 , aeson
7992 , base-compat
8093 , bytestring
8194 , containers
82− , deepseq
83− , hspec == 2.*
8495 , http-api-data
8596 , http-client
8697 , http-media
8798 , http-types
88− , HUnit
8999 , mtl
90− , network >= 2.6
91− , QuickCheck >= 2.7
92− , servant
93100 , servant-client
94101 , servant-client-core
95− , servant-server == 0.12.*
96102 , text
97103 , transformers
98104 , transformers-compat
99105 , wai
100106 , warp
101− , generics-sop
107+
108+ -- Additonal dependencies
109+ build-depends:
110+ deepseq >= 1.3.0.2 && < 1.5
111+ , generics-sop >= 0.3.1.0 && < 0.4
112+ , hspec >= 2.4.4 && < 2.5
113+ , HUnit >= 1.6 && < 1.7
114+ , network >= 2.6.3.2 && < 2.7
115+ , QuickCheck >= 2.10.1 && < 2.12
116+ , servant == 0.12.*
117+ , servant-server == 0.12.*
118+
119+ build-tool-depends:
120+ hspec-discover:hspec-discover >= 2.4.4 && < 2.5
servant-docs/servant-docs.cabal+40−20
@@ -35,25 +35,39 @@ library
3535 Servant.Docs
3636 , Servant.Docs.Internal
3737 , Servant.Docs.Internal.Pretty
38+
39+ -- Bundled with GHC: Lower bound to not force re-installs
40+ -- text and mtl are bundled starting with GHC-8.4
41+ --
42+ -- note: mtl lower bound is so low because of GHC-7.8
3843 build-depends:
39− base >=4.7 && <5
40− , base-compat >= 0.9.1 && <0.10
41− , aeson
42− , aeson-pretty
43− , bytestring >= 0.10.4.0 && <0.11
44− , case-insensitive
45− , hashable
46− , http-media >= 0.6
47− , http-types >= 0.7
48− , lens
49− , servant == 0.12.*
50− , string-conversions
51− , text
52− , unordered-containers >=0.2.5.0
53− , control-monad-omega >= 0.3.1 && <0.4
44+ base >= 4.7 && < 4.11
45+ , bytestring >= 0.10.4.0 && < 0.11
46+ , text >= 1.2.3.0 && < 1.3
47+
5448 if !impl(ghc >= 8.0)
5549 build-depends:
56− semigroups >=0.17 && <0.19
50+ semigroups >=0.18.3 && <0.19
51+
52+ -- Servant dependencies
53+ build-depends:
54+ servant == 0.12.*
55+
56+ -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
57+ -- Here can be exceptions if we really need features from the newer versions.
58+ build-depends:
59+ aeson >= 1.2.3.0 && < 1.3
60+ , aeson-pretty >= 0.8.5 && < 0.9
61+ , base-compat >= 0.9.3 && < 0.10
62+ , case-insensitive >= 1.2.0.10 && < 1.3
63+ , control-monad-omega >= 0.3.1 && < 0.4
64+ , hashable >= 1.2.6.1 && < 1.3
65+ , http-media >= 0.7.1.1 && < 0.8
66+ , http-types >= 0.9.1 && < 0.12
67+ , lens >= 4.15.4 && < 4.16
68+ , string-conversions >= 0.4.0.1 && < 0.5
69+ , unordered-containers >= 0.2.8.0 && < 0.3
70+
5771 hs-source-dirs: src
5872 default-language: Haskell2010
5973 ghc-options: -Wall
@@ -76,19 +90,25 @@ executable greet-docs
7690 default-language: Haskell2010
7791
7892test-suite spec
93+ default-language: Haskell2010
7994 type: exitcode-stdio-1.0
8095 main-is: Spec.hs
8196 other-modules: Servant.DocsSpec
82− build-tool-depends:
83− hspec-discover:hspec-discover
8497 hs-source-dirs: test
8598 ghc-options: -Wall
99+
100+ -- Dependencies inherited from the library. No need to specify bounds.
86101 build-depends:
87102 base
88103 , aeson
89− , hspec
90104 , lens
91105 , servant
92106 , servant-docs
93107 , string-conversions
94− default-language: Haskell2010
108+
109+ -- Additonal dependencies
110+ build-depends:
111+ hspec >= 2.4.4 && < 2.5
112+
113+ build-tool-depends:
114+ hspec-discover:hspec-discover >=2.4.4 && <2.5
servant-foreign/servant-foreign.cabal+32−11
@@ -36,12 +36,26 @@ library
3636 exposed-modules: Servant.Foreign
3737 , Servant.Foreign.Internal
3838 , Servant.Foreign.Inflections
39− build-depends: base >= 4.7 && <4.11
40− , base-compat >= 0.9.3 && <0.10
41− , lens == 4.*
42− , servant == 0.12.*
43− , text >= 1.2 && < 1.3
44− , http-types
39+
40+ -- Bundled with GHC: Lower bound to not force re-installs
41+ -- text and mtl are bundled starting with GHC-8.4
42+ --
43+ -- note: mtl lower bound is so low because of GHC-7.8
44+ build-depends:
45+ base >= 4.7 && <4.11
46+ , text >= 1.2.3.0 && < 1.3
47+
48+ -- Servant dependencies
49+ build-depends:
50+ servant == 0.12.*
51+
52+ -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
53+ -- Here can be exceptions if we really need features from the newer versions.
54+ build-depends:
55+ base-compat >= 0.9.3 && <0.10
56+ , lens >= 4.15.4 && <4.16
57+ , http-types >= 0.9.1 && < 0.12
58+
4559 hs-source-dirs: src
4660 default-language: Haskell2010
4761 ghc-options: -Wall
@@ -56,10 +70,17 @@ test-suite spec
5670 include-dirs: include
5771 main-is: Spec.hs
5872 other-modules: Servant.ForeignSpec
73+
74+ -- Dependencies inherited from the library. No need to specify bounds.
75+ build-depends:
76+ base
77+ , servant
78+ , servant-foreign
79+
80+ -- Additonal dependencies
81+ build-depends:
82+ hspec >= 2.4.4 && <2.5
83+
5984 build-tool-depends:
60− hspec-discover:hspec-discover
61− build-depends: base
62− , hspec >= 2.1.8
63− , servant
64− , servant-foreign
85+ hspec-discover:hspec-discover >=2.4.4 && <2.5
6586 default-language: Haskell2010
servant-foreign/test/Servant/ForeignSpec.hs+1−1
@@ -9,7 +9,7 @@
99{-# LANGUAGE ScopedTypeVariables #-}
1010{-# LANGUAGE TypeFamilies #-}
1111{-# LANGUAGE TypeOperators #-}
12−#if __GLASGOW__HASKELL < 709
12+#if __GLASGOW_HASKELL__ < 709
1313{-# OPTIONS_GHC -fcontext-stack=41 #-}
1414#endif
1515#include "overlapping-compat.h"
servant-server/servant-server.cabal+73−57
@@ -54,38 +54,50 @@ library
5454 Servant.Server.Internal.RoutingApplication
5555 Servant.Server.Internal.ServantErr
5656 Servant.Utils.StaticFiles
57+
58+ -- Bundled with GHC: Lower bound to not force re-installs
59+ -- text and mtl are bundled starting with GHC-8.4
60+ --
61+ -- note: mtl lower bound is so low because of GHC-7.8
62+ build-depends:
63+ base >= 4.7 && < 4.11
64+ , bytestring >= 0.10.4.0 && < 0.11
65+ , containers >= 0.5.5.1 && < 0.6
66+ , mtl >= 2.1 && < 2.3
67+ , text >= 1.2.3.0 && < 1.3
68+ , transformers >= 0.3.0.0 && < 0.6
69+ , filepath >= 1.3.0.2 && < 1.5
70+
71+ -- Servant dependencies
72+ build-depends:
73+ servant == 0.12.*
74+
75+ -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
76+ -- Here can be exceptions if we really need features from the newer versions.
5777 build-depends:
58− base >= 4.7 && < 4.11
59− , base-compat >= 0.9 && < 0.10
60− , aeson >= 0.7 && < 1.3
61− , attoparsec >= 0.12 && < 0.14
62− , base64-bytestring >= 1.0 && < 1.1
63− , bytestring >= 0.10 && < 0.11
64− , containers >= 0.5 && < 0.6
65− , exceptions >= 0.8 && < 0.9
66− , http-api-data >= 0.3 && < 0.4
67− , http-media >= 0.4 && < 0.8
68− , http-types >= 0.8 && < 0.12
69− , network-uri >= 2.6 && < 2.7
70− , monad-control >= 1.0.0.4 && < 1.1
71− , mtl >= 2 && < 2.3
72− , network >= 2.6 && < 2.7
73− , safe >= 0.3 && < 0.4
74− , servant == 0.12.*
75− , split >= 0.2 && < 0.3
76− , string-conversions >= 0.3 && < 0.5
77− , system-filepath >= 0.4 && < 0.5
78− , filepath >= 1 && < 1.5
79− , resourcet >= 1.1.6 && <1.2
80− , tagged >= 0.7.3 && <0.9
81− , text >= 1.2 && < 1.3
82− , transformers >= 0.3 && < 0.6
83− , transformers-base >= 0.4.4 && < 0.5
84− , transformers-compat>= 0.4 && < 0.6
85− , wai >= 3.0 && < 3.3
86− , wai-app-static >= 3.1 && < 3.2
87− , warp >= 3.0 && < 3.3
88− , word8 >= 0.1 && < 0.2
78+ aeson >= 1.2.3.0 && < 1.3
79+ , base-compat >= 0.9.3 && < 0.10
80+ , attoparsec >= 0.13.2.0 && < 0.14
81+ , base64-bytestring >= 1.0.0.1 && < 1.1
82+ , exceptions >= 0.8.3 && < 0.9
83+ , http-api-data >= 0.3.7.1 && < 0.4
84+ , http-media >= 0.7.1.1 && < 0.8
85+ , http-types >= 0.9.1 && < 0.12
86+ , network-uri >= 2.6.1.0 && < 2.7
87+ , monad-control >= 1.0.0.4 && < 1.1
88+ , network >= 2.6.3.2 && < 2.7
89+ , safe >= 0.3.15 && < 0.4
90+ , split >= 0.2.3.2 && < 0.3
91+ , string-conversions >= 0.4.0.1 && < 0.5
92+ , system-filepath >= 0.4 && < 0.5
93+ , resourcet >= 1.1.10 && < 1.2
94+ , tagged >= 0.8.5 && < 0.9
95+ , transformers-base >= 0.4.4 && < 0.5
96+ , transformers-compat >= 0.5.1 && < 0.6
97+ , wai >= 3.2.1.1 && < 3.3
98+ , wai-app-static >= 3.1.6.1 && < 3.2
99+ , warp >= 3.2.13 && < 3.3
100+ , word8 >= 0.1.3 && < 0.2
89101
90102 hs-source-dirs: src
91103 default-language: Haskell2010
@@ -126,49 +138,53 @@ test-suite spec
126138 Servant.HoistSpec
127139 Servant.ServerSpec
128140 Servant.Utils.StaticFilesSpec
129− build-tool-depends:
130− hspec-discover:hspec-discover
141+
142+ -- Dependencies inherited from the library. No need to specify bounds.
131143 build-depends:
132− base == 4.*
144+ base
133145 , base-compat
134146 , aeson
135147 , base64-bytestring
136148 , bytestring
137− , directory
138149 , exceptions
139− , hspec == 2.*
140− , hspec-wai >= 0.8 && <0.10
141150 , http-types
142151 , mtl
143− , network >= 2.6
144− , parsec
145− , QuickCheck
152+ , network
146153 , resourcet
147154 , safe
148155 , servant
149156 , servant-server
150− , should-not-typecheck == 2.1.*
151157 , string-conversions
152− , temporary
153158 , text
154159 , transformers
155160 , transformers-compat
156161 , wai
157− , wai-extra
158162 , warp
159163
164+ -- Additonal dependencies
165+ build-depends:
166+ directory >= 1.2.1.0 && < 1.4
167+ , hspec >= 2.4.4 && < 2.5
168+ , hspec-wai >= 0.9 && < 0.10
169+ , should-not-typecheck >= 2.1.0 && < 2.2
170+ , parsec >= 3.1.11 && < 3.2
171+ , QuickCheck >= 2.10.1 && < 2.12
172+ , wai-extra >= 3.0.21.0 && < 3.1
173+ , temporary >= 1.2.0.3 && < 1.3
174+
175+ build-tool-depends:
176+ hspec-discover:hspec-discover >=2.4.4 && <2.5
177+
160178test-suite doctests
161− build-depends: base
162− , servant
163− , doctest
164− , filemanip
165− , directory
166− , filepath
167− type: exitcode-stdio-1.0
168− main-is: test/doctests.hs
169− buildable: True
170− default-language: Haskell2010
171− ghc-options: -Wall -threaded
172− if impl(ghc >= 8.2)
173− x-doctest-options: -fdiagnostics-color=never
174− include-dirs: include
179+ build-depends:
180+ base
181+ , servant-server
182+ , doctest >= 0.13.0 && <0.14
183+ type: exitcode-stdio-1.0
184+ main-is: test/doctests.hs
185+ buildable: True
186+ default-language: Haskell2010
187+ ghc-options: -Wall -threaded
188+ if impl(ghc >= 8.2)
189+ x-doctest-options: -fdiagnostics-color=never
190+ include-dirs: include
servant/servant.cabal+61−45
@@ -63,29 +63,38 @@ library
6363 Servant.API.WithNamedContext
6464 Servant.Utils.Links
6565 Servant.Utils.Enter
66+
67+ -- Bundled with GHC: Lower bound to not force re-installs
68+ -- text and mtl are bundled starting with GHC-8.4
69+ --
70+ -- note: mtl lower bound is so low because of GHC-7.8
6671 build-depends:
67− base >= 4.7 && < 4.11
68− , base-compat >= 0.9 && < 0.10
69− , aeson >= 0.7 && < 1.3
70− , attoparsec >= 0.12 && < 0.14
71− , bytestring >= 0.10 && < 0.11
72− , case-insensitive >= 1.2 && < 1.3
73− , http-api-data >= 0.3 && < 0.4
74− , http-media >= 0.4 && < 0.8
75− , http-types >= 0.8 && < 0.12
76− , natural-transformation >= 0.4 && < 0.5
77− , mtl >= 2.0 && < 2.3
78− , mmorph >= 1 && < 1.2
79− , tagged >= 0.7.3 && < 0.9
80− , text >= 1 && < 1.3
81− , singleton-bool >= 0.1.2.0 && <0.2
82− , string-conversions >= 0.3 && < 0.5
83− , network-uri >= 2.6 && < 2.7
84− , vault >= 0.3 && < 0.4
72+ base >= 4.7 && < 4.11
73+ , bytestring >= 0.10.4.0 && < 0.11
74+ , mtl >= 2.0.1 && < 2.3
75+ , text >= 1.2.3.0 && < 1.3
8576
8677 if !impl(ghc >= 8.0)
8778 build-depends:
88− semigroups >= 0.16 && < 0.19
79+ semigroups >= 0.18.3 && < 0.19
80+
81+ -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
82+ -- Here can be exceptions if we really need features from the newer versions.
83+ build-depends:
84+ base-compat >= 0.9.3 && < 0.10
85+ , aeson >= 1.2.3.0 && < 1.3
86+ , attoparsec >= 0.13.2.0 && < 0.14
87+ , case-insensitive >= 1.2.0.10 && < 1.3
88+ , http-api-data >= 0.3.7.1 && < 0.4
89+ , http-media >= 0.7.1.1 && < 0.8
90+ , http-types >= 0.9.1 && < 0.12
91+ , natural-transformation >= 0.4 && < 0.5
92+ , mmorph >= 1.1.0 && < 1.2
93+ , tagged >= 0.8.5 && < 0.9
94+ , singleton-bool >= 0.1.2.0 && < 0.2
95+ , string-conversions >= 0.4.0.1 && < 0.5
96+ , network-uri >= 2.6.1.0 && < 2.7
97+ , vault >= 0.3.0.7 && < 0.4
8998
9099 hs-source-dirs: src
91100 default-language: Haskell2010
@@ -125,42 +134,49 @@ test-suite spec
125134 Servant.API.ResponseHeadersSpec
126135 Servant.Utils.LinksSpec
127136 Servant.Utils.EnterSpec
128− build-tool-depends:
129− hspec-discover:hspec-discover
137+
138+ -- Dependencies inherited from the library. No need to specify bounds.
130139 build-depends:
131− base == 4.*
140+ base
132141 , base-compat
133142 , aeson
134− , aeson-compat >=0.3.3 && <0.4
135143 , attoparsec
136144 , bytestring
137− , hspec == 2.*
138− , QuickCheck
139− , quickcheck-instances
140145 , servant
141146 , string-conversions
142147 , text
143− , url
144148
145149 if !impl(ghc >= 8.0)
146150 build-depends:
147− semigroups >= 0.16 && < 0.19
151+ semigroups
152+
153+ -- Additonal dependencies
154+ build-depends:
155+ aeson-compat >= 0.3.3 && < 0.4
156+ , hspec >= 2.4.4 && < 2.5
157+ , QuickCheck >= 2.10.1 && < 2.12
158+ , quickcheck-instances >= 0.3.16 && < 0.4
159+
160+ build-tool-depends:
161+ hspec-discover:hspec-discover >= 2.4.4 && < 2.5
148162
149163test-suite doctests
150− build-depends: base
151− , servant
152− , doctest
153− , filemanip
154− , directory
155− , filepath
156− , hspec
157− type: exitcode-stdio-1.0
158− main-is: test/doctests.hs
159− buildable: True
160− default-language: Haskell2010
161− ghc-options: -Wall -threaded
162− if impl(ghc >= 8.2)
163− x-doctest-options: -fdiagnostics-color=never
164− include-dirs: include
165− x-doctest-source-dirs: test
166− x-doctest-modules: Servant.Utils.LinksSpec
164+ build-depends:
165+ base
166+ , servant
167+ , doctest >= 0.13.0 && <0.14
168+
169+ -- We test Links failure with doctest, so we need extra dependencies
170+ build-depends:
171+ hspec >= 2.4.4 && < 2.5
172+
173+ type: exitcode-stdio-1.0
174+ main-is: test/doctests.hs
175+ buildable: True
176+ default-language: Haskell2010
177+ ghc-options: -Wall -threaded
178+ if impl(ghc >= 8.2)
179+ x-doctest-options: -fdiagnostics-color=never
180+ include-dirs: include
181+ x-doctest-source-dirs: test
182+ x-doctest-modules: Servant.Utils.LinksSpec
servant/test/Servant/Utils/LinksSpec.hs+1−1
@@ -4,7 +4,7 @@
44{-# LANGUAGE PolyKinds #-}
55{-# LANGUAGE TypeOperators #-}
66{-# LANGUAGE ScopedTypeVariables #-}
7−#if __GLASGOW__HASKELL < 709
7+#if __GLASGOW_HASKELL__ < 709
88{-# OPTIONS_GHC -fcontext-stack=41 #-}
99#endif
1010module Servant.Utils.LinksSpec where
stack.yaml+3
@@ -8,5 +8,8 @@ packages:
88- servant-server/
99- servant/
1010
11+extra-deps:
12+- text-1.2.3.0
13+
1114# allow-newer: true # ignores all bounds, that's a sledgehammer
1215# - doc/tutorial/