Skip to content

Commit d06a2dd

Browse files
authored
Allow GHC-9.8 (#1714)
1 parent c60c312 commit d06a2dd

File tree

15 files changed

+44
-53
lines changed

15 files changed

+44
-53
lines changed

.github/workflows/master.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
- "8.10.7"
2121
- "9.0.2"
2222
- "9.2.8"
23-
- "9.4.5"
24-
- "9.6.2"
23+
- "9.4.8"
24+
- "9.6.3"
25+
- "9.8.1"
2526
fail-fast: false
2627

2728
steps:
@@ -51,7 +52,7 @@ jobs:
5152
5253
- name: Install doctest
5354
run: |
54-
cabal install --ignore-project -j2 doctest --constraint='doctest ^>=0.21'
55+
cabal install --ignore-project -j2 doctest --constraint='doctest ^>=0.22'
5556
5657
- name: Build
5758
run: |

cabal.project

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,6 @@ tests: True
5353
optimization: False
5454
-- reorder-goals: True
5555

56-
-- Older warp versions fail to build with https >= 4.2:
57-
-- Network/Wai/Handler/Warp/HTTP2.hs:48:16: error:
58-
-- Error: • Constructor ‘H2.Config’ does not have the required strict field(s): confMySockAddr,
59-
-- confPeerSockAddr
60-
constraints: http2 <4.2
61-
62-
-- wreq-0.5.4.1 doesn't seem to work with ghc-8.6.5
63-
if (impl(ghc < 8.8))
64-
constraints: wreq == 0.5.4.0
65-
66-
allow-newer: servant-js:base
67-
6856
-- Print ticks so that doctest type querying is consistent across GHC versions.
6957
-- This block can be removed when we drop support for GHC 9.4 and below.
7058
if(impl(ghc >= 9.6.1))
@@ -74,6 +62,8 @@ if(impl(ghc >= 9.6.1))
7462
package servant-server
7563
ghc-options: -fprint-redundant-promotion-ticks
7664

77-
allow-newer: servant-multipart:servant, servant-multipart:servant-server, servant-multipart-api:servant
78-
allow-newer: servant-pagination:servant, servant-pagination:servant-server
79-
allow-newer: servant-js:servant, servant-js:servant-foreign
65+
allow-newer: servant-multipart:bytestring, servant-multipart:text
66+
allow-newer: servant-multipart-api:bytestring, servant-multipart-api:text
67+
allow-newer: servant-pagination:servant, servant-pagination:servant-server, servant-pagination:text
68+
allow-newer: servant-js:base, servant-js:servant, servant-js:servant-foreign, servant-js:text
69+
allow-newer: swagger2:aeson, swagger2:base, swagger2:template-haskell, swagger2:bytestring, swagger2:text

servant-auth/servant-auth-client/servant-auth-client.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ library
3131
default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
3232
ghc-options: -Wall
3333
build-depends:
34-
base >= 4.10 && < 4.19
34+
base >= 4.10 && < 4.20
3535
, bytestring >= 0.10.6.0 && < 0.13
3636
, containers >= 0.5.6.2 && < 0.7
3737
, servant-auth == 0.4.*

servant-auth/servant-auth-docs/servant-auth-docs.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extra-source-files:
2323

2424
custom-setup
2525
setup-depends:
26-
base < 4.19, Cabal < 4, cabal-doctest >=1.0.6 && <1.1
26+
base < 4.20, Cabal < 4, cabal-doctest >=1.0.6 && <1.1
2727

2828
source-repository head
2929
type: git
@@ -35,7 +35,7 @@ library
3535
default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
3636
ghc-options: -Wall
3737
build-depends:
38-
base >= 4.10 && < 4.19
38+
base >= 4.10 && < 4.20
3939
, servant-docs >= 0.13 && < 0.14
4040
, servant >= 0.13 && < 0.21
4141
, servant-auth == 0.4.*
@@ -50,7 +50,7 @@ test-suite doctests
5050
build-depends:
5151
base,
5252
servant-auth-docs,
53-
doctest >= 0.16 && < 0.22,
53+
doctest >= 0.16 && < 0.23,
5454
QuickCheck >= 2.11.3 && < 2.15,
5555
template-haskell
5656
ghc-options: -Wall -threaded

servant-auth/servant-auth-server/servant-auth-server.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ library
3131
default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
3232
ghc-options: -Wall
3333
build-depends:
34-
base >= 4.10 && < 4.19
34+
base >= 4.10 && < 4.20
3535
, aeson >= 1.0.0.1 && < 3
3636
, base64-bytestring >= 1.0.0.1 && < 2
3737
, blaze-builder >= 0.4.1.0 && < 0.5
@@ -50,7 +50,7 @@ library
5050
, servant-auth == 0.4.*
5151
, servant-server >= 0.13 && < 0.21
5252
, tagged >= 0.8.4 && < 0.9
53-
, text >= 1.2.3.0 && < 2.1
53+
, text >= 1.2.3.0 && < 2.2
5454
, time >= 1.5.0.1 && < 1.13
5555
, unordered-containers >= 0.2.9.0 && < 0.3
5656
, wai >= 3.2.1.2 && < 3.3
@@ -129,7 +129,7 @@ test-suite spec
129129
, lens-aeson >= 1.0.2 && < 1.3
130130
, warp >= 3.2.25 && < 3.4
131131
, wreq >= 0.5.2.1 && < 0.6
132-
, text >= 1.2.3.0 && < 2.1
132+
, text >= 1.2.3.0 && < 2.2
133133
other-modules:
134134
Servant.Auth.ServerSpec
135135
default-language: Haskell2010

servant-auth/servant-auth-swagger/servant-auth-swagger.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ library
3131
default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
3232
ghc-options: -Wall
3333
build-depends:
34-
base >= 4.10 && < 4.19
35-
, text >= 1.2.3.0 && < 2.1
34+
base >= 4.10 && < 4.20
35+
, text >= 1.2.3.0 && < 2.2
3636
, servant-swagger >= 1.1.5 && < 2
3737
, swagger2 >= 2.2.2 && < 3
3838
, servant >= 0.13 && < 0.21

servant-auth/servant-auth/servant-auth.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ library
3333
default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
3434
ghc-options: -Wall
3535
build-depends:
36-
base >= 4.10 && < 4.19
36+
base >= 4.10 && < 4.20
3737
, containers >= 0.6 && < 0.7
3838
, aeson >= 2.0 && < 3
3939
, jose >= 0.10 && < 0.11
4040
, lens >= 4.16.1 && < 5.3
4141
, servant >= 0.15 && < 0.21
42-
, text >= 1.2.3.0 && < 2.1
42+
, text >= 1.2.3.0 && < 2.2
4343
, unordered-containers >= 0.2.9.0 && < 0.3
4444
exposed-modules:
4545
Servant.Auth

servant-client-core/servant-client-core.cabal

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ library
5050
--
5151
-- note: mtl lower bound is so low because of GHC-7.8
5252
build-depends:
53-
base >= 4.9 && < 4.19
53+
base >= 4.9 && < 4.20
5454
, bytestring >= 0.10.8.1 && < 0.13
55-
, constraints >= 0.2 && < 0.14
55+
, constraints >= 0.2 && < 0.15
5656
, containers >= 0.5.7.1 && < 0.7
57-
, deepseq >= 1.4.2.0 && < 1.5
58-
, text >= 1.2.3.0 && < 2.1
57+
, deepseq >= 1.4.2.0 && < 1.6
58+
, text >= 1.2.3.0 && < 2.2
5959
, transformers >= 0.5.2.0 && < 0.7
60-
, template-haskell >= 2.11.1.0 && < 2.21
60+
, template-haskell >= 2.11.1.0 && < 2.22
6161

6262
if !impl(ghc >= 8.2)
6363
build-depends:
@@ -103,7 +103,7 @@ test-suite spec
103103

104104
-- Additional dependencies
105105
build-depends:
106-
deepseq >= 1.4.2.0 && < 1.5
106+
deepseq >= 1.4.2.0 && < 1.6
107107
, hspec >= 2.6.0 && < 2.12
108108
, QuickCheck >= 2.12.6.1 && < 2.15
109109

servant-client/servant-client.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ library
4141
-- Bundled with GHC: Lower bound to not force re-installs
4242
-- text and mtl are bundled starting with GHC-8.4
4343
build-depends:
44-
base >= 4.9 && < 4.19
44+
base >= 4.9 && < 4.20
4545
, bytestring >= 0.10.8.1 && < 0.13
4646
, containers >= 0.5.7.1 && < 0.7
47-
, deepseq >= 1.4.2.0 && < 1.5
47+
, deepseq >= 1.4.2.0 && < 1.6
4848
, mtl ^>= 2.2.2 || ^>= 2.3.1
4949
, stm >= 2.4.5.1 && < 2.6
50-
, text >= 1.2.3.0 && < 2.1
50+
, text >= 1.2.3.0 && < 2.2
5151
, time >= 1.6.0.1 && < 1.13
5252
, transformers >= 0.5.2.0 && < 0.7
5353

servant-docs/servant-docs.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ library
4141
--
4242
-- note: mtl lower bound is so low because of GHC-7.8
4343
build-depends:
44-
base >= 4.9 && < 4.19
44+
base >= 4.9 && < 4.20
4545
, bytestring >= 0.10.8.1 && < 0.13
46-
, text >= 1.2.3.0 && < 2.1
46+
, text >= 1.2.3.0 && < 2.2
4747

4848
-- Servant dependencies
4949
build-depends:

0 commit comments

Comments
 (0)