Skip to content

Commit 17924f9

Browse files
committed
Add SPDX List v3.16 to LicenseListVersion and the file format changelog
1 parent f26a066 commit 17924f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cabal-syntax/src/Distribution/SPDX/LicenseListVersion.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ data LicenseListVersion
1212
| LicenseListVersion_3_6
1313
| LicenseListVersion_3_9
1414
| LicenseListVersion_3_10
15+
| LicenseListVersion_3_16
1516
deriving (Eq, Ord, Show, Enum, Bounded)
1617

1718
cabalSpecVersionToSPDXListVersion :: CabalSpecVersion -> LicenseListVersion
19+
cabalSpecVersionToSPDXListVersion CabalSpecV3_8 = LicenseListVersion_3_16
1820
cabalSpecVersionToSPDXListVersion CabalSpecV3_6 = LicenseListVersion_3_10
1921
cabalSpecVersionToSPDXListVersion CabalSpecV3_4 = LicenseListVersion_3_9
2022
cabalSpecVersionToSPDXListVersion CabalSpecV3_0 = LicenseListVersion_3_6

doc/file-format-changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ relative to the respective preceding *published* version.
4949
allowed of the form ``foo/**/literalFile``. Prior, double-star
5050
wildcards required the trailing filename itself be a wildcard.
5151

52+
* License fields use identifiers from SPDX License List version
53+
``3.16 2022-02-06``
54+
5255

5356
``cabal-version: 3.6``
5457
----------------------

0 commit comments

Comments
 (0)