Skip to content

Commit

Permalink
bumped cabal-version field (#1498)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
teto committed Jan 4, 2022
1 parent 29d2553 commit 73c87bc
Show file tree
Hide file tree
Showing 40 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion doc/cookbook/basic-auth/basic-auth.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-basic-auth
version: 0.1
synopsis: Basic Authentication cookbook example
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-basic-auth
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-basic-streaming
version: 2.1
synopsis: Streaming in servant without streaming libs
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-basic-streaming
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-curl-mock
version: 0.1
synopsis: Generate curl mock requests cookbook example
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbock-curl-mock
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-custom-errors
version: 0.1
synopsis: Return custom error messages from combinators
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-custom-errors
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/db-mysql-basics/mysql-basics.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: mysql-basics
version: 0.1.0.0
synopsis: Simple MySQL API cookbook example
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10

executable run
hs-source-dirs: .
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-db-postgres-pool
version: 0.1
synopsis: Simple PostgreSQL connection pool cookbook example
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-db-postgres-pool
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-db-sqlite-simple
version: 0.1
synopsis: Simple SQLite DB cookbook example
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-db-sqlite-simple
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-file-upload
version: 0.1
synopsis: File upload cookbook example
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-file-upload
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/generic/generic.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-generic
version: 0.1
synopsis: Using custom monad to pass a state between handlers
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-using-custom-monad
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-hoist-server-with-context
version: 0.0.1
synopsis: JWT and basic access authentication with a Custom Monad cookbook example
Expand All @@ -10,7 +11,6 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
category: Servant
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-hoist-server-with-context
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/https/https.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-https
version: 0.1
synopsis: HTTPS cookbook example
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-https
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-jwt-and-basic-auth
version: 0.0.1
synopsis: JWT and basic access authentication cookbook example
Expand All @@ -10,7 +11,6 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
category: Servant
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-jwt-and-basic-auth
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: open-id-connect
version: 0.1
synopsis: OpenId Connect with Servant example
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >= 1.10
tested-with: GHC==8.6.5

executable cookbook-openidconnect
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/pagination/pagination.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-pagination
version: 2.1
synopsis: Pagination with Servant example
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-pagination
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/sentry/sentry.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-sentry
version: 0.1
synopsis: Collecting runtime exceptions using Sentry
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-sentry
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-structuring-apis
version: 0.1
synopsis: Example that shows how APIs can be structured
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-structuring-apis
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/testing/testing.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-testing
version: 0.0.1
synopsis: Common testing patterns in Servant apps
Expand All @@ -9,7 +10,6 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
category: Servant
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-testing
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-using-custom-monad
version: 0.1
synopsis: Using custom monad to pass a state between handlers
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-using-custom-monad
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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-using-free-client
version: 0.1
synopsis: Using Free client
Expand All @@ -7,7 +8,6 @@ license-file: ../../../servant/LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.3, GHC ==8.10.7

executable cookbook-using-free-client
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/uverb/uverb.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: cookbook-uverb
version: 0.0.1
synopsis: How to use the 'UVerb' type.
Expand All @@ -9,7 +10,6 @@ author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
category: Servant
build-type: Simple
cabal-version: >=1.10
tested-with: GHC==8.6.5, GHC==8.8.4, GHC==8.10.7

executable cookbook-uverb
Expand Down
2 changes: 1 addition & 1 deletion doc/tutorial/tutorial.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: tutorial
version: 0.10
synopsis: The servant tutorial
Expand All @@ -11,7 +12,6 @@ license-file: LICENSE
author: Servant Contributors
maintainer: haskell-servant-maintainers@googlegroups.com
build-type: Simple
cabal-version: >=1.10
tested-with:
GHC==8.6.5
GHC==8.8.3, GHC ==8.10.7
Expand Down
2 changes: 1 addition & 1 deletion servant-auth/servant-auth-client/servant-auth-client.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: servant-auth-client
version: 0.4.1.0
synopsis: servant-client/servant-auth compatibility
Expand All @@ -17,7 +18,6 @@ license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
CHANGELOG.md

Expand Down
2 changes: 1 addition & 1 deletion servant-auth/servant-auth-docs/servant-auth-docs.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: servant-auth-docs
version: 0.2.10.0
synopsis: servant-docs/servant-auth compatibility
Expand All @@ -17,7 +18,6 @@ license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
build-type: Custom
cabal-version: >= 1.10
extra-source-files:
CHANGELOG.md

Expand Down
2 changes: 1 addition & 1 deletion servant-auth/servant-auth-server/servant-auth-server.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: servant-auth-server
version: 0.4.6.0
synopsis: servant-server/servant-auth compatibility
Expand All @@ -17,7 +18,6 @@ license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
CHANGELOG.md

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: servant-auth-swagger
version: 0.2.10.1
synopsis: servant-swagger/servant-auth compatibility
Expand All @@ -17,7 +18,6 @@ license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
CHANGELOG.md

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
@@ -1,3 +1,4 @@
cabal-version: 2.2
name: servant-auth
version: 0.4.0.0
synopsis: Authentication combinators for servant
Expand All @@ -19,7 +20,6 @@ license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
CHANGELOG.md

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
@@ -1,4 +1,4 @@
cabal-version: >=1.10
cabal-version: 2.2
name: servant-client-core
version: 0.18.3

Expand Down
2 changes: 1 addition & 1 deletion servant-client-ghcjs/servant-client-ghcjs.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: >=1.10
cabal-version: 2.2
name: servant-client-ghcjs
version: 0.16
synopsis:
Expand Down
2 changes: 1 addition & 1 deletion servant-client/servant-client.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: >=1.10
cabal-version: 2.2
name: servant-client
version: 0.18.3

Expand Down
2 changes: 1 addition & 1 deletion servant-conduit/servant-conduit.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: >=1.10
cabal-version: 2.2
name: servant-conduit
version: 0.15.1

Expand Down
2 changes: 1 addition & 1 deletion servant-docs/servant-docs.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: >=1.10
cabal-version: 2.2
name: servant-docs
version: 0.11.9

Expand Down
2 changes: 1 addition & 1 deletion servant-foreign/servant-foreign.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: >=1.10
cabal-version: 2.2
name: servant-foreign
version: 0.15.4

Expand Down
2 changes: 1 addition & 1 deletion servant-http-streams/servant-http-streams.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: >=1.10
cabal-version: 2.2
name: servant-http-streams
version: 0.18.3

Expand Down
2 changes: 1 addition & 1 deletion servant-machines/servant-machines.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: >=1.10
cabal-version: 2.2
name: servant-machines
version: 0.15.1

Expand Down

0 comments on commit 73c87bc

Please sign in to comment.