Skip to content

Commit

Permalink
Clean build against nightly-2023-04-14 (#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Apr 23, 2023
1 parent 79a29b0 commit 7ae7873
Show file tree
Hide file tree
Showing 19 changed files with 84 additions and 66 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: CI

# Trigger the workflow on push or pull request, but only for the master branch
on:
pull_request:
push:
branches: [master]

jobs:
cabal:
Expand All @@ -19,8 +17,8 @@ jobs:
- "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.2"
- "9.4.2"
- "9.2.7"
- "9.4.4"

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -117,11 +115,13 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
- uses: cachix/install-nix-action@v20
with:
extra_nix_config: |
trusted-public-keys = ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=1aba6f367982bd6dd78ec2fda75ab246a62d32c5 cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://nixcache.reflex-frp.org https://cache.nixos.org/
nix_path: nixpkgs=channel:release-22.11

- name: Setup
run: |
# Override cabal.project with the lightweight GHCJS one
Expand Down
1 change: 1 addition & 0 deletions cabal.ghcjs.project
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ tests: True
-- Constraints so that reflex-platform provided packages are selected.
constraints: attoparsec == 0.13.2.2
constraints: hashable == 1.3.0.0
constraints: hspec < 2.10
44 changes: 26 additions & 18 deletions ghcjs.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
let reflex-platform = import (builtins.fetchTarball
{ name = "reflex-platform";
url = "https://github.com/reflex-frp/reflex-platform/archive/1aba6f367982bd6dd78ec2fda75ab246a62d32c5.tar.gz";
}) {};
pkgs = import ./nix/nixpkgs.nix; in
let
reflex-platform = import (builtins.fetchTarball {
name = "reflex-platform";
url = "https://github.com/reflex-frp/reflex-platform/archive/1aba6f367982bd6dd78ec2fda75ab246a62d32c5.tar.gz";
}) {};

pkgs = import ./nix/nixpkgs.nix;

in

pkgs.stdenv.mkDerivation {
name = "ghcjs-shell";
buildInputs =
[ (reflex-platform.ghcjs.ghcWithPackages (p: with p; [
attoparsec
hashable
]))
pkgs.cabal-install
pkgs.gmp
pkgs.haskellPackages.cabal-plan
pkgs.haskellPackages.hspec-discover
pkgs.nodejs
pkgs.perl
pkgs.zlib
];
buildInputs = [
(reflex-platform.ghcjs.ghcWithPackages (p: with p; [
attoparsec
hashable
]))
] ++ (with pkgs; [
cabal-install
gmp
haskellPackages.cabal-plan
haskellPackages.hspec-discover
nodejs
perl
zlib
openssl
openssl.dev
postgresql
]);
}
6 changes: 3 additions & 3 deletions servant-auth/servant-auth-client/servant-auth-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ maintainer: jkarni@gmail.com
copyright: (c) Julian K. Arni
license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4
build-type: Simple
extra-source-files:
CHANGELOG.md
Expand Down Expand Up @@ -50,7 +50,7 @@ test-suite spec
test
default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall
build-tool-depends: hspec-discover:hspec-discover >=2.5.5 && <2.10
build-tool-depends: hspec-discover:hspec-discover >=2.5.5 && <2.11

-- dependencies with bounds inherited from the library stanza
build-depends:
Expand All @@ -62,7 +62,7 @@ test-suite spec

-- test dependencies
build-depends:
hspec >= 2.5.5 && < 2.10
hspec >= 2.5.5 && < 2.11
, QuickCheck >= 2.11.3 && < 2.15
, aeson >= 1.3.1.1 && < 3
, bytestring >= 0.10.6.0 && < 0.12
Expand Down
6 changes: 3 additions & 3 deletions servant-auth/servant-auth-docs/servant-auth-docs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ maintainer: jkarni@gmail.com
copyright: (c) Julian K. Arni
license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4
build-type: Custom
extra-source-files:
CHANGELOG.md
Expand Down Expand Up @@ -64,7 +64,7 @@ test-suite spec
test
default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall
build-tool-depends: hspec-discover:hspec-discover >=2.5.5 && <2.10
build-tool-depends: hspec-discover:hspec-discover >=2.5.5 && <2.11

-- dependencies with bounds inherited from the library stanza
build-depends:
Expand All @@ -78,7 +78,7 @@ test-suite spec
-- test dependencies
build-depends:
servant-auth-docs
, hspec >= 2.5.5 && < 2.10
, hspec >= 2.5.5 && < 2.11
, QuickCheck >= 2.11.3 && < 2.15

default-language: Haskell2010
6 changes: 3 additions & 3 deletions servant-auth/servant-auth-server/servant-auth-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ maintainer: jkarni@gmail.com
copyright: (c) Julian K. Arni
license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4
build-type: Simple
extra-source-files:
CHANGELOG.md
Expand Down Expand Up @@ -102,7 +102,7 @@ test-suite spec
test
default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall
build-tool-depends: hspec-discover:hspec-discover >=2.5.5 && <2.10
build-tool-depends: hspec-discover:hspec-discover >=2.5.5 && <2.11

-- dependencies with bounds inherited from the library stanza
build-depends:
Expand All @@ -123,7 +123,7 @@ test-suite spec
-- test dependencies
build-depends:
servant-auth-server
, hspec >= 2.5.5 && < 2.10
, hspec >= 2.5.5 && < 2.11
, QuickCheck >= 2.11.3 && < 2.15
, http-client >= 0.5.13.1 && < 0.8
, lens-aeson >= 1.0.2 && < 1.3
Expand Down
6 changes: 3 additions & 3 deletions servant-auth/servant-auth-swagger/servant-auth-swagger.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ maintainer: jkarni@gmail.com
copyright: (c) Julian K. Arni
license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4
build-type: Simple
extra-source-files:
CHANGELOG.md
Expand Down Expand Up @@ -49,7 +49,7 @@ test-suite spec
test
default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall
build-tool-depends: hspec-discover:hspec-discover >= 2.5.5 && <2.10
build-tool-depends: hspec-discover:hspec-discover >= 2.5.5 && <2.11
-- dependencies with bounds inherited from the library stanza
build-depends:
base
Expand All @@ -63,7 +63,7 @@ test-suite spec
-- test dependencies
build-depends:
servant-auth-swagger
, hspec >= 2.5.5 && < 2.10
, hspec >= 2.5.5 && < 2.11
, QuickCheck >= 2.11.3 && < 2.15
other-modules:
Servant.Auth.SwaggerSpec
Expand Down
2 changes: 1 addition & 1 deletion servant-auth/servant-auth/servant-auth.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ maintainer: jkarni@gmail.com
copyright: (c) Julian K. Arni
license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4
build-type: Simple
extra-source-files:
CHANGELOG.md
Expand Down
6 changes: 3 additions & 3 deletions servant-client-core/servant-client-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
build-type: Simple
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4
, GHCJS ==8.6.0.1

extra-source-files:
Expand Down Expand Up @@ -104,8 +104,8 @@ test-suite spec
-- Additional dependencies
build-depends:
deepseq >= 1.4.2.0 && < 1.5
, hspec >= 2.6.0 && < 2.10
, hspec >= 2.6.0 && < 2.11
, QuickCheck >= 2.12.6.1 && < 2.15

build-tool-depends:
hspec-discover:hspec-discover >= 2.6.0 && <2.10
hspec-discover:hspec-discover >= 2.6.0 && <2.11
6 changes: 3 additions & 3 deletions servant-client/servant-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
build-type: Simple
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4
, GHCJS ==8.6.0.1

extra-source-files:
Expand Down Expand Up @@ -124,15 +124,15 @@ test-suite spec
-- Additional dependencies
build-depends:
entropy >= 0.4.1.3 && < 0.5
, hspec >= 2.6.0 && < 2.10
, hspec >= 2.6.0 && < 2.11
, HUnit >= 1.6.0.0 && < 1.7
, network >= 2.8.0.0 && < 3.2
, QuickCheck >= 2.12.6.1 && < 2.15
, servant == 0.19.*
, servant-server == 0.19.*

build-tool-depends:
hspec-discover:hspec-discover >= 2.6.0 && < 2.10
hspec-discover:hspec-discover >= 2.6.0 && < 2.11

test-suite readme
type: exitcode-stdio-1.0
Expand Down
2 changes: 1 addition & 1 deletion servant-conduit/servant-conduit.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
copyright: 2018-2019 Servant Contributors
build-type: Simple
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4

extra-source-files:
CHANGELOG.md
Expand Down
2 changes: 1 addition & 1 deletion servant-docs/servant-docs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
build-type: Simple
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4

extra-source-files:
CHANGELOG.md
Expand Down
6 changes: 3 additions & 3 deletions servant-foreign/servant-foreign.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
copyright: 2015-2019 Servant Contributors
build-type: Simple
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4

extra-source-files:
CHANGELOG.md
Expand Down Expand Up @@ -74,7 +74,7 @@ test-suite spec

-- Additional dependencies
build-depends:
hspec >= 2.6.0 && <2.10
hspec >= 2.6.0 && <2.11
build-tool-depends:
hspec-discover:hspec-discover >=2.6.0 && <2.10
hspec-discover:hspec-discover >=2.6.0 && <2.11
default-language: Haskell2010
6 changes: 3 additions & 3 deletions servant-http-streams/servant-http-streams.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
copyright: 2019 Servant Contributors
build-type: Simple
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4

extra-source-files:
CHANGELOG.md
Expand Down Expand Up @@ -112,15 +112,15 @@ test-suite spec
-- Additional dependencies
build-depends:
entropy >= 0.4.1.3 && < 0.5
, hspec >= 2.6.0 && < 2.10
, hspec >= 2.6.0 && < 2.11
, HUnit >= 1.6.0.0 && < 1.7
, network >= 2.8.0.0 && < 3.2
, QuickCheck >= 2.12.6.1 && < 2.15
, servant == 0.19.*
, servant-server == 0.19.*

build-tool-depends:
hspec-discover:hspec-discover >= 2.6.0 && < 2.10
hspec-discover:hspec-discover >= 2.6.0 && < 2.11

test-suite readme
type: exitcode-stdio-1.0
Expand Down
6 changes: 3 additions & 3 deletions servant-server/servant-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
build-type: Simple
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.4 || ==9.4.3
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4

extra-source-files:
CHANGELOG.md
Expand Down Expand Up @@ -159,12 +159,12 @@ test-suite spec
build-depends:
aeson >= 1.4.1.0 && < 3
, directory >= 1.3.0.0 && < 1.4
, hspec >= 2.6.0 && < 2.10
, hspec >= 2.6.0 && < 2.11
, hspec-wai >= 0.10.1 && < 0.12
, QuickCheck >= 2.12.6.1 && < 2.15
, should-not-typecheck >= 2.1.0 && < 2.2
, temporary >= 1.3 && < 1.4
, wai-extra >= 3.0.24.3 && < 3.2

build-tool-depends:
hspec-discover:hspec-discover >= 2.6.0 && <2.10
hspec-discover:hspec-discover >= 2.6.0 && <2.11
2 changes: 1 addition & 1 deletion servant-swagger/servant-swagger.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ maintainer: haskell-servant-maintainers@googlegroups.com
copyright: (c) 2015-2018, Servant contributors
category: Web, Servant, Swagger
build-type: Custom
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4

extra-source-files:
README.md
Expand Down
6 changes: 3 additions & 3 deletions servant/servant.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ maintainer: haskell-servant-maintainers@googlegroups.com
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
build-type: Simple

tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC==8.6.5, GHC==8.8.4, GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.7, GHC ==9.4.4
, GHCJS ==8.6.0.1

extra-source-files:
Expand Down Expand Up @@ -167,9 +167,9 @@ test-suite spec

-- Additional dependencies
build-depends:
hspec >= 2.6.0 && < 2.10
hspec >= 2.6.0 && < 2.11
, QuickCheck >= 2.12.6.1 && < 2.15
, quickcheck-instances >= 0.3.19 && < 0.4

build-tool-depends:
hspec-discover:hspec-discover >= 2.6.0 && < 2.10
hspec-discover:hspec-discover >= 2.6.0 && < 2.11
6 changes: 4 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
resolver: lts-18.5
resolver: nightly-2023-04-14

packages:
- servant-client-core/
- servant-client/
Expand All @@ -17,4 +18,5 @@ packages:
# - doc/tutorial/

extra-deps:
- hspec-wai-0.10.1
- hspec-wai-0.11.1
- pipes-safe-2.3.4

0 comments on commit 7ae7873

Please sign in to comment.