Skip to content

Commit 6111117

Browse files
committed
Support GHC-9.0.1
1 parent cc67b9e commit 6111117

File tree

13 files changed

+33
-32
lines changed

13 files changed

+33
-32
lines changed

.github/workflows/master.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest]
16-
cabal: ["3.2"]
16+
cabal: ["3.4"]
1717
ghc:
1818
- "8.0.2"
1919
- "8.2.2"
2020
- "8.4.4"
2121
- "8.6.5"
2222
- "8.8.4"
2323
- "8.10.2"
24+
- "9.0.1"
2425

2526
steps:
2627
- uses: actions/checkout@v2

cabal.project

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ packages:
33
servant-client/
44
servant-client-core/
55
servant-http-streams/
6-
-- Tests failing with Cabal (TODO: investigate)
7-
-- servant-docs/
6+
servant-docs/
87
servant-foreign/
98
servant-server/
109
doc/tutorial/
@@ -26,7 +25,8 @@ packages:
2625
doc/cookbook/custom-errors
2726
doc/cookbook/basic-streaming
2827
doc/cookbook/db-postgres-pool
29-
doc/cookbook/db-sqlite-simple
28+
--doc/cookbook/db-sqlite-simple
29+
-- ^ BROKEN blaze-textual
3030
doc/cookbook/file-upload
3131
doc/cookbook/generic
3232
doc/cookbook/hoist-server-with-context
@@ -36,7 +36,8 @@ packages:
3636
-- doc/cookbook/sentry
3737
-- Commented out because servant-quickcheck currently doesn't build.
3838
-- doc/cookbook/testing
39-
doc/cookbook/uverb
39+
--doc/cookbook/uverb
40+
-- ^ BROKEN servant-swagger -> optics-th
4041
doc/cookbook/structuring-apis
4142
doc/cookbook/using-custom-monad
4243
doc/cookbook/using-free-client
@@ -64,8 +65,7 @@ write-ghc-environment-files: always
6465
allow-newer: servant-pagination-2.2.2:servant
6566
allow-newer: servant-pagination-2.2.2:servant-server
6667

67-
-- https://github.com/haskell-servant/servant-multipart/pull/41
68-
allow-newer: servant-multipart:servant
69-
allow-newer: servant-multipart:servant-server
70-
allow-newer: servant-multipart:servant-client-core
7168
allow-newer: servant-js:servant
69+
70+
-- ghc 9
71+
allow-newer: tdigest:base

doc/tutorial/tutorial.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ library
6868
, cookie >= 0.4.3 && < 0.5
6969
, js-jquery >= 3.3.1 && < 3.4
7070
, lucid >= 2.9.11 && < 2.10
71-
, random >= 1.1 && < 1.2
71+
, random >= 1.1 && < 1.3
7272
, servant-js >= 0.9 && < 0.10
73-
, time >= 1.6.0.1 && < 1.10
73+
, time >= 1.6.0.1 && < 1.13
7474

7575
-- For legacy tools, we need to specify build-depends too
7676
build-depends: markdown-unlit >= 0.5.0 && <0.6

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ author: Servant Contributors
1616
maintainer: [email protected]
1717
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
1818
build-type: Simple
19-
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2
19+
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
2020
, GHCJS == 8.4
2121

2222
extra-source-files:
@@ -50,13 +50,13 @@ library
5050
--
5151
-- note: mtl lower bound is so low because of GHC-7.8
5252
build-depends:
53-
base >= 4.9 && < 4.15
53+
base >= 4.9 && < 4.16
5454
, bytestring >= 0.10.8.1 && < 0.12
5555
, containers >= 0.5.7.1 && < 0.7
5656
, deepseq >= 1.4.2.0 && < 1.5
5757
, text >= 1.2.3.0 && < 1.3
5858
, transformers >= 0.5.2.0 && < 0.6
59-
, template-haskell >= 2.11.1.0 && < 2.17
59+
, template-haskell >= 2.11.1.0 && < 2.18
6060

6161
if !impl(ghc >= 8.2)
6262
build-depends:

servant-client/servant-client.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ author: Servant Contributors
2020
maintainer: [email protected]
2121
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
2222
build-type: Simple
23-
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2
23+
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
2424

2525
extra-source-files:
2626
CHANGELOG.md
@@ -40,7 +40,7 @@ library
4040
-- Bundled with GHC: Lower bound to not force re-installs
4141
-- text and mtl are bundled starting with GHC-8.4
4242
build-depends:
43-
base >= 4.9 && < 4.15
43+
base >= 4.9 && < 4.16
4444
, bytestring >= 0.10.8.1 && < 0.12
4545
, containers >= 0.5.7.1 && < 0.7
4646
, deepseq >= 1.4.2.0 && < 1.5

servant-docs/servant-docs.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ author: Servant Contributors
1919
maintainer: [email protected]
2020
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
2121
build-type: Simple
22-
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2
22+
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
2323

2424
extra-source-files:
2525
CHANGELOG.md
@@ -41,7 +41,7 @@ library
4141
--
4242
-- note: mtl lower bound is so low because of GHC-7.8
4343
build-depends:
44-
base >= 4.9 && < 4.15
44+
base >= 4.9 && < 4.16
4545
, bytestring >= 0.10.8.1 && < 0.12
4646
, text >= 1.2.3.0 && < 1.3
4747

servant-foreign/servant-foreign.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ author: Servant Contributors
2121
maintainer: [email protected]
2222
copyright: 2015-2019 Servant Contributors
2323
build-type: Simple
24-
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2
24+
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
2525

2626
extra-source-files:
2727
CHANGELOG.md
@@ -41,7 +41,7 @@ library
4141
--
4242
-- note: mtl lower bound is so low because of GHC-7.8
4343
build-depends:
44-
base >= 4.9 && < 4.15
44+
base >= 4.9 && < 4.16
4545
, text >= 1.2.3.0 && < 1.3
4646

4747
-- Servant dependencies

servant-http-streams/servant-http-streams.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ author: Servant Contributors
2020
maintainer: [email protected]
2121
copyright: 2019 Servant Contributors
2222
build-type: Simple
23-
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2
23+
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
2424

2525
extra-source-files:
2626
CHANGELOG.md
@@ -38,7 +38,7 @@ library
3838
-- Bundled with GHC: Lower bound to not force re-installs
3939
-- text and mtl are bundled starting with GHC-8.4
4040
build-depends:
41-
base >= 4.9 && < 4.15
41+
base >= 4.9 && < 4.16
4242
, bytestring >= 0.10.8.1 && < 0.12
4343
, containers >= 0.5.7.1 && < 0.7
4444
, deepseq >= 1.4.2.0 && < 1.5

servant-pipes/example/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ server = fast :<|> slow :<|> readme :<|> proxy
6464

6565
readme = liftIO $ do
6666
putStrLn "/readme"
67-
return $ P.withFile "README.md" ReadMode PBS.fromHandle
67+
return $ P.withFile "README.md" ReadMode $ \h -> PBS.fromHandle h
6868

6969
proxy c = liftIO $ do
7070
putStrLn "/proxy"

servant-server/servant-server.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ author: Servant Contributors
2323
maintainer: [email protected]
2424
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
2525
build-type: Simple
26-
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2
26+
tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
2727

2828
extra-source-files:
2929
CHANGELOG.md
@@ -60,7 +60,7 @@ library
6060
-- Bundled with GHC: Lower bound to not force re-installs
6161
-- text and mtl are bundled starting with GHC-8.4
6262
build-depends:
63-
base >= 4.9 && < 4.15
63+
base >= 4.9 && < 4.16
6464
, bytestring >= 0.10.8.1 && < 0.12
6565
, containers >= 0.5.7.1 && < 0.7
6666
, mtl >= 2.2.2 && < 2.3
@@ -72,7 +72,7 @@ library
7272
-- strict dependency as we re-export 'servant' things.
7373
build-depends:
7474
servant >= 0.18.2 && < 0.18.3
75-
, http-api-data >= 0.4.1 && < 0.4.3
75+
, http-api-data >= 0.4.1 && < 0.4.4
7676

7777
-- Other dependencies: Lower bound around what is in the latest Stackage LTS.
7878
-- Here can be exceptions if we really need features from the newer versions.

0 commit comments

Comments
 (0)