Skip to content

Commit

Permalink
Merge pull request #1452 from akhesaCaro/unsupport_old_ghc
Browse files Browse the repository at this point in the history
Unsupport GHC < 8.6.5
  • Loading branch information
akhesaCaro committed Oct 2, 2021
2 parents 8da966f + a4aacc9 commit 0b706aa
Show file tree
Hide file tree
Showing 54 changed files with 47 additions and 112 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
os: [ubuntu-latest]
cabal: ["3.4"]
ghc:
- "8.0.2"
- "8.2.2"
- "8.4.4"
- "8.6.5"
- "8.8.4"
- "8.10.4"
Expand Down
32 changes: 0 additions & 32 deletions Makefile

This file was deleted.

2 changes: 2 additions & 0 deletions cabal.ghcjs.project
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ packages:
-- we need to tell cabal we are using GHCJS
compiler: ghcjs
tests: True

constraints: hashable <=1.3.3.0
2 changes: 1 addition & 1 deletion doc/cookbook/basic-auth/basic-auth.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-basic-auth
main-is: BasicAuth.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/basic-streaming/basic-streaming.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-basic-streaming
main-is: Streaming.lhs
Expand Down
1 change: 0 additions & 1 deletion doc/cookbook/curl-mock/CurlMock.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Language extensions and imports:
import Control.Lens ((^.))
import Data.Aeson
import Data.Aeson.Text
import Data.Monoid ((<>))
import Data.Proxy (Proxy (Proxy))
import Data.Text (Text)
import Data.Text.Encoding (decodeUtf8)
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/curl-mock/curl-mock.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbock-curl-mock
main-is: CurlMock.lhs
Expand Down
1 change: 0 additions & 1 deletion doc/cookbook/custom-errors/CustomErrors.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Extensions and imports:
import Data.Aeson
import Data.Proxy
import Data.Text
import Data.Semigroup
import GHC.Generics
import Network.Wai
import Network.Wai.Handler.Warp
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/custom-errors/custom-errors.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-custom-errors
main-is: CustomErrors.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/db-postgres-pool/db-postgres-pool.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-db-postgres-pool
main-is: PostgresPool.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/db-sqlite-simple/db-sqlite-simple.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-db-sqlite-simple
main-is: DBConnection.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/file-upload/file-upload.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-file-upload
main-is: FileUpload.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/generic/generic.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-using-custom-monad
main-is: Generic.lhs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ maintainer: haskell-servant-maintainers@googlegroups.com
category: Servant
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-hoist-server-with-context
main-is: HoistServerWithContext.lhs
Expand All @@ -32,8 +32,6 @@ executable cookbook-hoist-server-with-context
, http-types >= 0.12
, bytestring >= 0.10.4
, mtl
if impl(ghc < 8.2.1)
buildable: False
default-language: Haskell2010
ghc-options: -Wall -pgmL markdown-unlit
build-tool-depends: markdown-unlit:markdown-unlit
2 changes: 1 addition & 1 deletion doc/cookbook/https/https.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-https
main-is: Https.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/jwt-and-basic-auth/jwt-and-basic-auth.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ maintainer: haskell-servant-maintainers@googlegroups.com
category: Servant
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-jwt-and-basic-auth
main-is: JWTAndBasicAuth.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/open-id-connect/OpenIdConnect.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >= 1.10
tested-with: GHC==8.4.4, GHC==8.6.5
tested-with: GHC==8.6.5

executable cookbook-openidconnect
main-is: OpenIdConnect.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/pagination/pagination.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-pagination
main-is: Pagination.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/sentry/sentry.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-sentry
main-is: Sentry.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/structuring-apis/structuring-apis.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-structuring-apis
main-is: StructuringApis.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/testing/testing.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ maintainer: haskell-servant-maintainers@googlegroups.com
category: Servant
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-testing
main-is: Testing.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/using-custom-monad/using-custom-monad.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-using-custom-monad
main-is: UsingCustomMonad.lhs
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/using-free-client/using-free-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.1

executable cookbook-using-free-client
main-is: UsingFreeClient.lhs
Expand Down
2 changes: 0 additions & 2 deletions doc/cookbook/uverb/uverb.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ executable cookbook-uverb
, swagger2
, wai
, warp
if impl(ghc < 8.6.1)
buildable: False
default-language: Haskell2010
ghc-options: -Wall -pgmL markdown-unlit
build-tool-depends: markdown-unlit:markdown-unlit
1 change: 0 additions & 1 deletion doc/tutorial/Authentication.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ module Authentication where
import Data.Aeson (ToJSON)
import Data.ByteString (ByteString)
import Data.Map (Map, fromList)
import Data.Monoid ((<>))
import qualified Data.Map as Map
import Data.Proxy (Proxy (Proxy))
import Data.Text (Text)
Expand Down
3 changes: 0 additions & 3 deletions doc/tutorial/tutorial.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with:
GHC==8.0.2
GHC==8.2.2
GHC==8.4.4
GHC==8.6.5
GHC==8.8.3, GHC ==8.10.1
extra-source-files:
Expand Down
17 changes: 14 additions & 3 deletions nix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,18 @@ $ nix-shell nix/shell.nix --argstr compiler ghcHEAD
```

**Possible GHC versions**
- `ghc822Binary`
- `ghc865`
- `ghc865Binary`
- `ghc884`
- `ghc8102` - default
- `ghc8104` - default

### Cabal users

GHC version can be chosen via the nix-shell parameter

`cabal build all`

### Stack version

Since the ghc version is set by the LTS version, it is preferable to use the `ghc8104` version parameter for the nix-shell.

`stack --no-nix --system-ghc <command>`
8 changes: 3 additions & 5 deletions nix/shell.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
let nixos = fetchTarball {
url = "https://releases.nixos.org/nixos/20.09/nixos-20.09.3505.12d9950bf47/nixexprs.tar.xz";
sha256 = "0fsl8bsdb8i536pfs4wrp0826h5l84xqlwx32sbz66jg4ykqp9lr";
let nixos = fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.05.tar.gz";
}; in

{ compiler ? "ghc8102"
{ compiler ? "ghc8104"
, tutorial ? false
, pkgs ? import nixos { config = {}; }
}:
Expand All @@ -16,7 +14,7 @@ let nixos = fetchTarball {
in
stdenv.mkDerivation {
name = "servant-dev";
buildInputs = [ ghc zlib python3 wget cabal-install postgresql openssl ]
buildInputs = [ ghc zlib python3 wget cabal-install postgresql openssl stack haskellPackages.hspec-discover ]
++ (if tutorial then [docstuffs postgresql] else []);
shellHook = ''
eval $(grep export ${ghc}/bin/ghc)
Expand Down
2 changes: 1 addition & 1 deletion 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.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
, GHCJS == 8.4

extra-source-files:
Expand Down
2 changes: 0 additions & 2 deletions servant-client-core/src/Servant/Client/Core/BasicAuth.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ module Servant.Client.Core.BasicAuth (

import Data.ByteString.Base64
(encode)
import Data.Monoid
((<>))
import Data.Text.Encoding
(decodeUtf8)
import Servant.API.BasicAuth
Expand Down
2 changes: 0 additions & 2 deletions servant-client-core/src/Servant/Client/Core/Request.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ import Data.Bitraversable
import qualified Data.ByteString as BS
import qualified Data.ByteString.Builder as Builder
import qualified Data.ByteString.Lazy as LBS
import Data.Semigroup
((<>))
import qualified Data.Sequence as Seq
import Data.Text
(Text)
Expand Down
2 changes: 1 addition & 1 deletion 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.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1

extra-source-files:
CHANGELOG.md
Expand Down
2 changes: 0 additions & 2 deletions servant-client/src/Servant/Client/Internal/HttpClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ import Data.Maybe
(maybe, maybeToList)
import Data.Proxy
(Proxy (..))
import Data.Semigroup
((<>))
import Data.Sequence
(fromList)
import Data.String
Expand Down
2 changes: 0 additions & 2 deletions servant-client/test/Servant/FailSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import Prelude ()
import Prelude.Compat

import Data.Monoid ()
import Data.Semigroup
((<>))
import qualified Network.HTTP.Types as HTTP
import Test.Hspec

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.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2

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.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1

extra-source-files:
CHANGELOG.md
Expand Down
2 changes: 0 additions & 2 deletions servant-docs/src/Servant/Docs/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ import Data.Ord
(comparing)
import Data.Proxy
(Proxy (Proxy))
import Data.Semigroup
(Semigroup (..))
import Data.String.Conversions
(cs)
import Data.Text
Expand Down
2 changes: 1 addition & 1 deletion 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.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1

extra-source-files:
CHANGELOG.md
Expand Down

0 comments on commit 0b706aa

Please sign in to comment.