@@ -63,29 +63,38 @@ library
63 Servant.API.WithNamedContext
63 Servant.API.WithNamedContext
64 Servant.Utils.Links
64 Servant.Utils.Links
65 Servant.Utils.Enter
65 Servant.Utils.Enter
67+ -- Bundled with GHC: Lower bound to not force re-installs
68+ -- text and mtl are bundled starting with GHC-8.4
70+ -- note: mtl lower bound is so low because of GHC-7.8
66 build-depends:
71 build-depends:
67− base >= 4.7 && < 4.11
72+ 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
73+ , bytestring >= 0.10.4.0 && < 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
74+ , mtl >= 2.0.1 && < 2.3
78− , mmorph >= 1 && < 1.2
79− , tagged >= 0.7.3 && < 0.9
80− , text >= 1 && < 1.3
75+ , text >= 1.2.3.0 && < 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
86 if !impl(ghc >= 8.0)
77 if !impl(ghc >= 8.0)
87 build-depends:
78 build-depends:
88− semigroups >= 0.16 && < 0.19
79+ semigroups >= 0.18.3 && < 0.19
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.
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
90 hs-source-dirs: src
99 hs-source-dirs: src
91 default-language: Haskell2010
100 default-language: Haskell2010
@@ -125,42 +134,49 @@ test-suite spec
125 Servant.API.ResponseHeadersSpec
134 Servant.API.ResponseHeadersSpec
126 Servant.Utils.LinksSpec
135 Servant.Utils.LinksSpec
127 Servant.Utils.EnterSpec
136 Servant.Utils.EnterSpec
128− build-tool-depends:
137+
129− hspec-discover:hspec-discover
138+ -- Dependencies inherited from the library. No need to specify bounds.
130 build-depends:
139 build-depends:
131− base == 4.*
140+ base
132 , base-compat
141 , base-compat
134− , aeson-compat >=0.3.3 && <0.4
135 , attoparsec
143 , attoparsec
136 , bytestring
144 , bytestring
139− , quickcheck-instances
140 , servant
145 , servant
141 , string-conversions
146 , string-conversions
145 if !impl(ghc >= 8.0)
149 if !impl(ghc >= 8.0)
146 build-depends:
150 build-depends:
147− semigroups >= 0.16 && < 0.19
151+ semigroups
153+ -- Additonal dependencies
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
161+ hspec-discover:hspec-discover >= 2.4.4 && < 2.5
149test-suite doctests
163test-suite doctests
150− build-depends: base
164+ build-depends:
151− , servant
166+ , servant
152− , doctest
167+ , doctest >= 0.13.0 && <0.14
154− , directory
169+ -- We test Links failure with doctest, so we need extra dependencies
155− , filepath
170+ build-depends:
156− , hspec
171+ hspec >= 2.4.4 && < 2.5
157− type: exitcode-stdio-1.0
173+ type: exitcode-stdio-1.0
158− main-is: test/doctests.hs
174+ main-is: test/doctests.hs
159− buildable: True
175+ buildable: True
160− default-language: Haskell2010
176+ default-language: Haskell2010
161− ghc-options: -Wall -threaded
177+ ghc-options: -Wall -threaded
162− if impl(ghc >= 8.2)
178+ if impl(ghc >= 8.2)
163− x-doctest-options: -fdiagnostics-color=never
179+ x-doctest-options: -fdiagnostics-color=never
164− include-dirs: include
180+ include-dirs: include
165− x-doctest-source-dirs: test
181+ x-doctest-source-dirs: test
166− x-doctest-modules: Servant.Utils.LinksSpec
182+ x-doctest-modules: Servant.Utils.LinksSpec