Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
data LicenseExpression Source #
SPDX License Expression.
idstring = 1*(ALPHA / DIGIT / "-" / "." ) license id = <short form license identifier inAppendix I.1> license exception id = <short form license exception identifier inAppendix I.2> license ref = ["DocumentRef-"1*(idstring)":"]"LicenseRef-"1*(idstring) simple expression = license id / license id"+" / license ref compound expression = 1*1(simple expression / simple expression "WITH" license exception id / compound expression "AND" compound expression / compound expression "OR" compound expression ) / "(" compound expression ")" ) license expression = 1*1(simple expression / compound expression)
ELicense !SimpleLicenseExpression !(Maybe LicenseExceptionId) | |
EAnd !LicenseExpression !LicenseExpression | |
EOr !LicenseExpression !LicenseExpression |
Instances
data SimpleLicenseExpression Source #
Simple License Expressions.
ELicenseId LicenseId | An SPDX License List Short Form Identifier. For example: |
ELicenseIdPlus LicenseId | An SPDX License List Short Form Identifier with a unary"+" operator suffix to represent the current version of the license or any later version. For example: |
ELicenseRef LicenseRef | A SPDX user defined license reference: For example: |