Skip to content

Commit 73c87bc

Browse files
authored
bumped cabal-version field (#1498)
* bumped cabal-version field Cabal supports two types of licenses, native and SPDX, which can be seen here hackage.haskell.org/package/Cabal-3.6.2.0/docs/Distribution-Types-PackageDescription.html#v:licenseRaw Several packages use BSD-3-Clause as a license, in conjonction with cabal-version: >=1.10 which cabal parses as Right (UnknownLicense "BSD-3"). If I change teh cabal-version to cabal-version: 2.2 , cabal correctly identifdies the license License (ELicense (ELicenseId BSD_3_Clause)). * changed license from cabal to spdx format aka BSD3 -> BSD-3-Clause: next cabal may deprecate the old format
1 parent 29d2553 commit 73c87bc

File tree

40 files changed

+43
-43
lines changed

40 files changed

+43
-43
lines changed

doc/cookbook/basic-auth/basic-auth.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cookbook-basic-auth
23
version: 0.1
34
synopsis: Basic Authentication cookbook example
@@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
78
author: Servant Contributors
89
maintainer: [email protected]
910
build-type: Simple
10-
cabal-version: >=1.10
1111
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7
1212

1313
executable cookbook-basic-auth

doc/cookbook/basic-streaming/basic-streaming.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cookbook-basic-streaming
23
version: 2.1
34
synopsis: Streaming in servant without streaming libs
@@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
78
author: Servant Contributors
89
maintainer: [email protected]
910
build-type: Simple
10-
cabal-version: >=1.10
1111
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7
1212

1313
executable cookbook-basic-streaming

doc/cookbook/curl-mock/curl-mock.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cookbook-curl-mock
23
version: 0.1
34
synopsis: Generate curl mock requests cookbook example
@@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
78
author: Servant Contributors
89
maintainer: [email protected]
910
build-type: Simple
10-
cabal-version: >=1.10
1111
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7
1212

1313
executable cookbock-curl-mock

doc/cookbook/custom-errors/custom-errors.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cookbook-custom-errors
23
version: 0.1
34
synopsis: Return custom error messages from combinators
@@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
78
author: Servant Contributors
89
maintainer: [email protected]
910
build-type: Simple
10-
cabal-version: >=1.10
1111
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7
1212

1313
executable cookbook-custom-errors

doc/cookbook/db-mysql-basics/mysql-basics.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: mysql-basics
23
version: 0.1.0.0
34
synopsis: Simple MySQL API cookbook example
@@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
78
author: Servant Contributors
89
maintainer: [email protected]
910
build-type: Simple
10-
cabal-version: >=1.10
1111

1212
executable run
1313
hs-source-dirs: .

doc/cookbook/db-postgres-pool/db-postgres-pool.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cookbook-db-postgres-pool
23
version: 0.1
34
synopsis: Simple PostgreSQL connection pool cookbook example
@@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
78
author: Servant Contributors
89
maintainer: [email protected]
910
build-type: Simple
10-
cabal-version: >=1.10
1111
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7
1212

1313
executable cookbook-db-postgres-pool

doc/cookbook/db-sqlite-simple/db-sqlite-simple.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cookbook-db-sqlite-simple
23
version: 0.1
34
synopsis: Simple SQLite DB cookbook example
@@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
78
author: Servant Contributors
89
maintainer: [email protected]
910
build-type: Simple
10-
cabal-version: >=1.10
1111
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7
1212

1313
executable cookbook-db-sqlite-simple

doc/cookbook/file-upload/file-upload.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cookbook-file-upload
23
version: 0.1
34
synopsis: File upload cookbook example
@@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
78
author: Servant Contributors
89
maintainer: [email protected]
910
build-type: Simple
10-
cabal-version: >=1.10
1111
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7
1212

1313
executable cookbook-file-upload

doc/cookbook/generic/generic.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cookbook-generic
23
version: 0.1
34
synopsis: Using custom monad to pass a state between handlers
@@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
78
author: Servant Contributors
89
maintainer: [email protected]
910
build-type: Simple
10-
cabal-version: >=1.10
1111
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7
1212

1313
executable cookbook-using-custom-monad

doc/cookbook/hoist-server-with-context/hoist-server-with-context.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cookbook-hoist-server-with-context
23
version: 0.0.1
34
synopsis: JWT and basic access authentication with a Custom Monad cookbook example
@@ -10,7 +11,6 @@ author: Servant Contributors
1011
maintainer: [email protected]
1112
category: Servant
1213
build-type: Simple
13-
cabal-version: >=1.10
1414
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7
1515

1616
executable cookbook-hoist-server-with-context

0 commit comments

Comments
 (0)