git.iko.soy/typeable/servant
on master help sign in
Bump lower bounds in `servant`

- `text` is already 1.2.3.0 as https://github.com/fpco/stackage/issues/3147 is resolved AFAICS - `http-types` bound is surprisingly low due: https://github.com/fpco/stackage/issues/2976

commit0ae673583bac6bb6f0bddd7619eaadc4dff3df60 authorOleg Grenrus <oleg.grenrus@iki.fi> dateThu 25 Jan 2018, 11:23 (9 years ago) parentbf289cc
3 files changed+63−47
servant-foreign/test/Servant/ForeignSpec.hs+1−1 servant/servant.cabal+61−45 servant/test/Servant/Utils/LinksSpec.hs+1−1
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/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