@@ -54,38 +54,50 @@ library
54 Servant.Server.Internal.RoutingApplication
54 Servant.Server.Internal.RoutingApplication
55 Servant.Server.Internal.ServantErr
55 Servant.Server.Internal.ServantErr
56 Servant.Utils.StaticFiles
56 Servant.Utils.StaticFiles
58+ -- Bundled with GHC: Lower bound to not force re-installs
59+ -- text and mtl are bundled starting with GHC-8.4
61+ -- note: mtl lower bound is so low because of GHC-7.8
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
71+ -- Servant dependencies
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.
57 build-depends:
77 build-depends:
58− base >= 4.7 && < 4.11
59− , base-compat >= 0.9 && < 0.10
60− , aeson >= 0.7 && < 1.3
78+ aeson >= 1.2.3.0 && < 1.3
79+ , base-compat >= 0.9.3 && < 0.10
61− , attoparsec >= 0.12 && < 0.14
80+ , attoparsec >= 0.13.2.0 && < 0.14
62− , base64-bytestring >= 1.0 && < 1.1
81+ , base64-bytestring >= 1.0.0.1 && < 1.1
63− , bytestring >= 0.10 && < 0.11
64− , containers >= 0.5 && < 0.6
65− , exceptions >= 0.8 && < 0.9
82+ , exceptions >= 0.8.3 && < 0.9
66− , http-api-data >= 0.3 && < 0.4
83+ , http-api-data >= 0.3.7.1 && < 0.4
67− , http-media >= 0.4 && < 0.8
84+ , http-media >= 0.7.1.1 && < 0.8
68− , http-types >= 0.8 && < 0.12
85+ , http-types >= 0.9.1 && < 0.12
69− , network-uri >= 2.6 && < 2.7
86+ , network-uri >= 2.6.1.0 && < 2.7
70− , monad-control >= 1.0.0.4 && < 1.1
87+ , monad-control >= 1.0.0.4 && < 1.1
72− , network >= 2.6 && < 2.7
88+ , network >= 2.6.3.2 && < 2.7
73− , safe >= 0.3 && < 0.4
89+ , safe >= 0.3.15 && < 0.4
75− , split >= 0.2 && < 0.3
90+ , split >= 0.2.3.2 && < 0.3
76− , string-conversions >= 0.3 && < 0.5
91+ , string-conversions >= 0.4.0.1 && < 0.5
77− , system-filepath >= 0.4 && < 0.5
92+ , system-filepath >= 0.4 && < 0.5
78− , filepath >= 1 && < 1.5
79− , resourcet >= 1.1.6 && <1.2
93+ , resourcet >= 1.1.10 && < 1.2
80− , tagged >= 0.7.3 && <0.9
94+ , tagged >= 0.8.5 && < 0.9
81− , text >= 1.2 && < 1.3
82− , transformers >= 0.3 && < 0.6
83− , transformers-base >= 0.4.4 && < 0.5
95+ , transformers-base >= 0.4.4 && < 0.5
84− , transformers-compat>= 0.4 && < 0.6
96+ , transformers-compat >= 0.5.1 && < 0.6
85− , wai >= 3.0 && < 3.3
97+ , wai >= 3.2.1.1 && < 3.3
86− , wai-app-static >= 3.1 && < 3.2
98+ , wai-app-static >= 3.1.6.1 && < 3.2
87− , warp >= 3.0 && < 3.3
99+ , warp >= 3.2.13 && < 3.3
88− , word8 >= 0.1 && < 0.2
100+ , word8 >= 0.1.3 && < 0.2
90 hs-source-dirs: src
102 hs-source-dirs: src
91 default-language: Haskell2010
103 default-language: Haskell2010
@@ -126,49 +138,53 @@ test-suite spec
126 Servant.HoistSpec
138 Servant.HoistSpec
127 Servant.ServerSpec
139 Servant.ServerSpec
128 Servant.Utils.StaticFilesSpec
140 Servant.Utils.StaticFilesSpec
129− build-tool-depends:
141+
130− hspec-discover:hspec-discover
142+ -- Dependencies inherited from the library. No need to specify bounds.
131 build-depends:
143 build-depends:
132− base == 4.*
144+ base
133 , base-compat
145 , base-compat
135 , base64-bytestring
147 , base64-bytestring
136 , bytestring
148 , bytestring
138 , exceptions
149 , exceptions
140− , hspec-wai >= 0.8 && <0.10
141 , http-types
150 , http-types
143− , network >= 2.6
152+ , network
146 , resourcet
153 , resourcet
148 , servant
155 , servant
149 , servant-server
156 , servant-server
150− , should-not-typecheck == 2.1.*
151 , string-conversions
157 , string-conversions
154 , transformers
159 , transformers
155 , transformers-compat
160 , transformers-compat
164+ -- Additonal dependencies
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
176+ hspec-discover:hspec-discover >=2.4.4 && <2.5
160test-suite doctests
178test-suite doctests
161− build-depends: base
179+ build-depends:
162− , servant
181+ , servant-server
163− , doctest
182+ , doctest >= 0.13.0 && <0.14
167− type: exitcode-stdio-1.0
183+ type: exitcode-stdio-1.0
168− main-is: test/doctests.hs
184+ main-is: test/doctests.hs
169− buildable: True
185+ buildable: True
170− default-language: Haskell2010
186+ default-language: Haskell2010
171− ghc-options: -Wall -threaded
187+ ghc-options: -Wall -threaded
172− if impl(ghc >= 8.2)
188+ if impl(ghc >= 8.2)
173− x-doctest-options: -fdiagnostics-color=never
189+ x-doctest-options: -fdiagnostics-color=never
174− include-dirs: include
190+ include-dirs: include