Declared license. See section 3.15 of SPDX Specification 2.1
Note: the NOASSERTION case is omitted.
Old License can be migrated using following rules:
AllRightsReservedandUnspecifiedLicenseto NONE. No license specified which legally defaults to All Rights Reserved. The package may not be legally modified or redistributed by anyone but the rightsholder.OtherLicensecan be converted toLicenseRefpointing to the file in the package.UnknownLicensei.e. other licenses of the formname-x.y, should be covered by SPDX license list, otherwise useLicenseRef.PublicDomainisn't covered. Consider using CC0. See https://wiki.spdx.org/view/Legal_Team/Decisions/Dealing_with_Public_Domain_within_SPDX_Files for more information.
Constructors
NONEif the package contains no license information whatsoever; or
License LicenseExpressionA valid SPDX License Expression as defined in Appendix IV.
Instances14Eq, Data, Ord, Read, Show, Generic, …
Eq LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseData LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseOrd LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseRead LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseShow LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseGeneric LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseNFData LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseBinary LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseParsec LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseExample1 expression eitherParsec "BSD-3-Clause AND MIT" :: Either String LicenseRight (License (EAnd (ELicense (ELicenseId BSD_3_Clause) Nothing) (ELicense (ELicenseId MIT) Nothing)))
Example1 expression eitherParsec "NONE" :: Either String LicenseRight NONE
Pretty LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseStructured LicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.LicenseNewtype (Either License License) SpecLicenseDefined in Cabal-syntax-3.12.1.0 · Distribution.FieldGrammar.NewtypesNewtype (Either License License) SpecLicenseLenientDefined in Cabal-syntax-3.12.1.0 · Distribution.Types.InstalledPackageInfo.FieldGrammartype Rep License = D1 ('MetaDataDefined in Cabal-syntax-3.12.1.0 · Distribution.SPDX.License"License"
"Distribution.SPDX.License"
"Cabal-syntax-3.12.1.0-3adc"
'False) (C1 ('MetaCons"NONE"
'PrefixI 'False) U1 :+: C1 ('MetaCons"License"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseExpression)))