Distribution.SPDX

Cabal-syntax-3.11.0.0: A library for working with .cabal files

Safe Haskell | None
Language | Haskell2010

Distribution.SPDX

Contents

- License
- License expression
- License identifier
- License exception
- License reference
- License list version

Description

This module implements SPDX specification version 2.1 with a version 3.0 license list.

Specification is available on https://spdx.org/specifications

Synopsis

- data License
  - = NONE
  - | License LicenseExpression
- data LicenseExpression
  - = ELicense !SimpleLicenseExpression !(Maybe LicenseExceptionId)
  - | EAnd !LicenseExpression !LicenseExpression
  - | EOr !LicenseExpression !LicenseExpression
- data SimpleLicenseExpression
  - = ELicenseId LicenseId
  - | ELicenseIdPlus LicenseId
  - | ELicenseRef LicenseRef
- simpleLicenseExpression :: LicenseId -> LicenseExpression
- data LicenseId
  - = NullBSD
  - | AAL
  - | Abstyles
  - | Adobe_2006
  - | Adobe_Glyph
  - | ADSL
  - | AFL_1_1
  - | AFL_1_2
  - | AFL_2_0
  - | AFL_2_1
  - | AFL_3_0
  - | Afmparse
  - | AGPL_1_0
  - | AGPL_1_0_only
  - | AGPL_1_0_or_later
  - | AGPL_3_0_only
  - | AGPL_3_0_or_later
  - | Aladdin
  - | AMDPLPA
  - | AML
  - | AMPAS
  - | ANTLR_PD_fallback
  - | ANTLR_PD
  - | Apache_1_0
  - | Apache_1_1
  - | Apache_2_0
  - | APAFML
  - | APL_1_0
  - | App_s2p
  - | APSL_1_0
  - | APSL_1_1
  - | APSL_1_2
  - | APSL_2_0
  - | Artistic_1_0_cl8
  - | Artistic_1_0_Perl
  - | Artistic_1_0
  - | Artistic_2_0
  - | Bahyph
  - | Barr
  - | Beerware
  - | BitTorrent_1_0
  - | BitTorrent_1_1
  - | Blessing
  - | BlueOak_1_0_0
  - | Borceux
  - | BSD_1_Clause
  - | BSD_2_Clause_FreeBSD
  - | BSD_2_Clause_NetBSD
  - | BSD_2_Clause_Patent
  - | BSD_2_Clause_Views
  - | BSD_2_Clause
  - | BSD_3_Clause_Attribution
  - | BSD_3_Clause_Clear
  - | BSD_3_Clause_LBNL
  - | BSD_3_Clause_Modification
  - | BSD_3_Clause_No_Military_License
  - | BSD_3_Clause_No_Nuclear_License_2014
  - | BSD_3_Clause_No_Nuclear_License
  - | BSD_3_Clause_No_Nuclear_Warranty
  - | BSD_3_Clause_Open_MPI
  - | BSD_3_Clause
  - | BSD_4_Clause_Shortened
  - | BSD_4_Clause_UC
  - | BSD_4_Clause
  - | BSD_Protection
  - | BSD_Source_Code
  - | BSL_1_0
  - | Bzip2_1_0_5
  - | BUSL_1_1
  - | Bzip2_1_0_6
  - | C_UDA_1_0
  - | CAL_1_0_Combined_Work_Exception
  - | CAL_1_0
  - | Caldera
  - | CATOSL_1_1
  - | CC_BY_1_0
  - | CC_BY_2_0
  - | CC_BY_2_5_AU
  - | CC_BY_2_5
  - | CC_BY_3_0_AT
  - | CC_BY_3_0_DE
  - | CC_BY_3_0_NL
  - | CC_BY_3_0_US
  - | CC_BY_3_0
  - | CC_BY_4_0
  - | CC_BY_NC_1_0
  - | CC_BY_NC_2_0
  - | CC_BY_NC_2_5
  - | CC_BY_NC_3_0_DE
  - | CC_BY_NC_3_0
  - | CC_BY_NC_4_0
  - | CC_BY_NC_ND_1_0
  - | CC_BY_NC_ND_2_0
  - | CC_BY_NC_ND_2_5
  - | CC_BY_NC_ND_3_0_DE
  - | CC_BY_NC_ND_3_0_IGO
  - | CC_BY_NC_ND_3_0
  - | CC_BY_NC_ND_4_0
  - | CC_BY_NC_SA_1_0
  - | CC_BY_NC_SA_2_0_FR
  - | CC_BY_NC_SA_2_0_UK
  - | CC_BY_NC_SA_2_0
  - | CC_BY_NC_SA_2_5
  - | CC_BY_NC_SA_3_0_DE
  - | CC_BY_NC_SA_3_0_IGO
  - | CC_BY_NC_SA_3_0
  - | CC_BY_NC_SA_4_0
  - | CC_BY_ND_1_0
  - | CC_BY_ND_2_0
  - | CC_BY_ND_2_5
  - | CC_BY_ND_3_0_DE
  - | CC_BY_ND_3_0
  - | CC_BY_ND_4_0
  - | CC_BY_SA_1_0
  - | CC_BY_SA_2_0_UK
  - | CC_BY_SA_2_0
  - | CC_BY_SA_2_1_JP
  - | CC_BY_SA_2_5
  - | CC_BY_SA_3_0_AT
  - | CC_BY_SA_3_0_DE
  - | CC_BY_SA_3_0
  - | CC_BY_SA_4_0
  - | CC_PDDC
  - | CC0_1_0
  - | CDDL_1_0
  - | CDDL_1_1
  - | CDL_1_0
  - | CDLA_Permissive_1_0
  - | CDLA_Permissive_2_0
  - | CDLA_Sharing_1_0
  - | CECILL_1_0
  - | CECILL_1_1
  - | CECILL_2_0
  - | CECILL_2_1
  - | CECILL_B
  - | CECILL_C
  - | CERN_OHL_1_1
  - | CERN_OHL_1_2
  - | CERN_OHL_P_2_0
  - | CERN_OHL_S_2_0
  - | CERN_OHL_W_2_0
  - | ClArtistic
  - | CNRI_Jython
  - | CNRI_Python_GPL_Compatible
  - | CNRI_Python
  - | COIL_1_0
  - | Community_Spec_1_0
  - | Condor_1_1
  - | Copyleft_next_0_3_0
  - | Copyleft_next_0_3_1
  - | CPAL_1_0
  - | CPL_1_0
  - | CPOL_1_02
  - | Crossword
  - | CrystalStacker
  - | CUA_OPL_1_0
  - | Cube
  - | Curl
  - | D_FSL_1_0
  - | Diffmark
  - | DL_DE_BY_2_0
  - | DOC
  - | Dotseqn
  - | DRL_1_0
  - | DSDP
  - | Dvipdfm
  - | ECL_1_0
  - | ECL_2_0
  - | EFL_1_0
  - | EFL_2_0
  - | EGenix
  - | Elastic_2_0
  - | Entessa
  - | EPICS
  - | EPL_1_0
  - | EPL_2_0
  - | ErlPL_1_1
  - | Etalab_2_0
  - | EUDatagrid
  - | EUPL_1_0
  - | EUPL_1_1
  - | EUPL_1_2
  - | Eurosym
  - | Fair
  - | FDK_AAC
  - | Frameworx_1_0
  - | FreeBSD_DOC
  - | FreeImage
  - | FSFAP
  - | FSFULLR
  - | FSFUL
  - | FTL
  - | GD
  - | GFDL_1_1_invariants_only
  - | GFDL_1_1_invariants_or_later
  - | GFDL_1_1_no_invariants_only
  - | GFDL_1_1_no_invariants_or_later
  - | GFDL_1_1_only
  - | GFDL_1_1_or_later
  - | GFDL_1_2_invariants_only
  - | GFDL_1_2_invariants_or_later
  - | GFDL_1_2_no_invariants_only
  - | GFDL_1_2_no_invariants_or_later
  - | GFDL_1_2_only
  - | GFDL_1_2_or_later
  - | GFDL_1_3_invariants_only
  - | GFDL_1_3_invariants_or_later
  - | GFDL_1_3_no_invariants_only
  - | GFDL_1_3_no_invariants_or_later
  - | GFDL_1_3_only
  - | GFDL_1_3_or_later
  - | Giftware
  - | GL2PS
  - | Glide
  - | Glulxe
  - | GLWTPL
  - | Gnuplot
  - | GPL_1_0_only
  - | GPL_1_0_or_later
  - | GPL_2_0_only
  - | GPL_2_0_or_later
  - | GPL_3_0_only
  - | GPL_3_0_or_later
  - | GSOAP_1_3b
  - | HaskellReport
  - | Hippocratic_2_1
  - | HPND_sell_variant
  - | HPND
  - | HTMLTIDY
  - | IBM_pibs
  - | ICU
  - | IJG
  - | ImageMagick
  - | IMatix
  - | Imlib2
  - | Info_ZIP
  - | Intel_ACPI
  - | Intel
  - | Interbase_1_0
  - | IPA
  - | IPL_1_0
  - | ISC
  - | Jam
  - | JasPer_2_0
  - | JPNIC
  - | JSON
  - | LAL_1_2
  - | LAL_1_3
  - | Latex2e
  - | Leptonica
  - | LGPL_2_0_only
  - | LGPL_2_0_or_later
  - | LGPL_2_1_only
  - | LGPL_2_1_or_later
  - | LGPL_3_0_only
  - | LGPL_3_0_or_later
  - | LGPLLR
  - | Libpng_2_0
  - | Libpng
  - | Libselinux_1_0
  - | Libtiff
  - | LiLiQ_P_1_1
  - | LiLiQ_R_1_1
  - | LiLiQ_Rplus_1_1
  - | Linux_man_pages_copyleft
  - | Linux_OpenIB
  - | LPL_1_02
  - | LPL_1_0
  - | LPPL_1_0
  - | LPPL_1_1
  - | LPPL_1_2
  - | LPPL_1_3a
  - | LPPL_1_3c
  - | MakeIndex
  - | MirOS
  - | MIT_0
  - | MIT_advertising
  - | MIT_CMU
  - | MIT_enna
  - | MIT_feh
  - | MIT_Modern_Variant
  - | MIT_open_group
  - | MITNFA
  - | MIT
  - | Motosoto
  - | Mpich2
  - | MPL_1_0
  - | MPL_1_1
  - | MPL_2_0_no_copyleft_exception
  - | MPL_2_0
  - | MS_PL
  - | MS_RL
  - | MTLL
  - | MulanPSL_1_0
  - | MulanPSL_2_0
  - | Multics
  - | Mup
  - | NAIST_2003
  - | NASA_1_3
  - | Naumen
  - | NBPL_1_0
  - | NCGL_UK_2_0
  - | NCSA
  - | Net_SNMP
  - | NetCDF
  - | Newsletr
  - | NGPL
  - | NIST_PD_fallback
  - | NIST_PD
  - | NLOD_1_0
  - | NLOD_2_0
  - | NLPL
  - | Nokia
  - | NOSL
  - | Noweb
  - | NPL_1_0
  - | NPL_1_1
  - | NPOSL_3_0
  - | NRL
  - | NTP_0
  - | NTP
  - | O_UDA_1_0
  - | OCCT_PL
  - | OCLC_2_0
  - | ODbL_1_0
  - | ODC_By_1_0
  - | OFL_1_0_no_RFN
  - | OFL_1_0_RFN
  - | OFL_1_0
  - | OFL_1_1_no_RFN
  - | OFL_1_1_RFN
  - | OFL_1_1
  - | OGC_1_0
  - | OGDL_Taiwan_1_0
  - | OGL_Canada_2_0
  - | OGL_UK_1_0
  - | OGL_UK_2_0
  - | OGL_UK_3_0
  - | OGTSL
  - | OLDAP_1_1
  - | OLDAP_1_2
  - | OLDAP_1_3
  - | OLDAP_1_4
  - | OLDAP_2_0_1
  - | OLDAP_2_0
  - | OLDAP_2_1
  - | OLDAP_2_2_1
  - | OLDAP_2_2_2
  - | OLDAP_2_2
  - | OLDAP_2_3
  - | OLDAP_2_4
  - | OLDAP_2_5
  - | OLDAP_2_6
  - | OLDAP_2_7
  - | OLDAP_2_8
  - | OML
  - | OpenSSL
  - | OPL_1_0
  - | OPUBL_1_0
  - | OSET_PL_2_1
  - | OSL_1_0
  - | OSL_1_1
  - | OSL_2_0
  - | OSL_2_1
  - | OSL_3_0
  - | Parity_6_0_0
  - | Parity_7_0_0
  - | PDDL_1_0
  - | PHP_3_01
  - | PHP_3_0
  - | Plexus
  - | PolyForm_Noncommercial_1_0_0
  - | PolyForm_Small_Business_1_0_0
  - | PostgreSQL
  - | PSF_2_0
  - | Psfrag
  - | Psutils
  - | Python_2_0
  - | Qhull
  - | QPL_1_0
  - | Rdisc
  - | RHeCos_1_1
  - | RPL_1_1
  - | RPL_1_5
  - | RPSL_1_0
  - | RSA_MD
  - | RSCPL
  - | Ruby
  - | SAX_PD
  - | Saxpath
  - | SCEA
  - | SchemeReport
  - | Sendmail_8_23
  - | Sendmail
  - | SGI_B_1_0
  - | SGI_B_1_1
  - | SGI_B_2_0
  - | SHL_0_51
  - | SHL_0_5
  - | SimPL_2_0
  - | SISSL_1_2
  - | SISSL
  - | Sleepycat
  - | SMLNJ
  - | SMPPL
  - | SNIA
  - | Spencer_86
  - | Spencer_94
  - | Spencer_99
  - | SPL_1_0
  - | SSH_OpenSSH
  - | SSH_short
  - | SSPL_1_0
  - | SugarCRM_1_1_3
  - | SWL
  - | TAPR_OHL_1_0
  - | TCL
  - | TCP_wrappers
  - | TMate
  - | TORQUE_1_1
  - | TOSL
  - | TU_Berlin_1_0
  - | TU_Berlin_2_0
  - | UCL_1_0
  - | Unicode_DFS_2015
  - | Unicode_DFS_2016
  - | Unicode_TOU
  - | Unlicense
  - | UPL_1_0
  - | Vim
  - | VOSTROM
  - | VSL_1_0
  - | W3C_19980720
  - | W3C_20150513
  - | W3C
  - | Watcom_1_0
  - | Wsuipa
  - | WTFPL
  - | X11_distribute_modifications_variant
  - | X11
  - | Xerox
  - | XFree86_1_1
  - | Xinetd
  - | Xnet
  - | Xpp
  - | XSkat
  - | YPL_1_0
  - | YPL_1_1
  - | Zed
  - | Zend_2_0
  - | Zimbra_1_3
  - | Zimbra_1_4
  - | Zlib_acknowledgement
  - | Zlib
  - | ZPL_1_1
  - | ZPL_2_0
  - | ZPL_2_1
- licenseId :: LicenseId -> String
- licenseName :: LicenseId -> String
- licenseIsOsiApproved :: LicenseId -> Bool
- mkLicenseId :: LicenseListVersion -> String -> Maybe LicenseId
- licenseIdList :: LicenseListVersion -> [LicenseId]
- data LicenseExceptionId
  - = DS389_exception
  - | Autoconf_exception_2_0
  - | Autoconf_exception_3_0
  - | Bison_exception_2_2
  - | Bootloader_exception
  - | Classpath_exception_2_0
  - | CLISP_exception_2_0
  - | DigiRule_FOSS_exception
  - | ECos_exception_2_0
  - | Fawkes_Runtime_exception
  - | FLTK_exception
  - | Font_exception_2_0
  - | Freertos_exception_2_0
  - | GCC_exception_2_0
  - | GCC_exception_3_1
  - | Gnu_javamail_exception
  - | GPL_3_0_linking_exception
  - | GPL_3_0_linking_source_exception
  - | GPL_CC_1_0
  - | I2p_gpl_java_exception
  - | LGPL_3_0_linking_exception
  - | Libtool_exception
  - | Linux_syscall_note
  - | LLVM_exception
  - | LZMA_exception
  - | Mif_exception
  - | Nokia_Qt_exception_1_1
  - | OCaml_LGPL_linking_exception
  - | OCCT_exception_1_0
  - | OpenJDK_assembly_exception_1_0
  - | Openvpn_openssl_exception
  - | PS_or_PDF_font_exception_20170817
  - | Qt_GPL_exception_1_0
  - | Qt_LGPL_exception_1_1
  - | Qwt_exception_1_0
  - | SHL_2_0
  - | SHL_2_1
  - | Swift_exception
  - | U_boot_exception_2_0
  - | Universal_FOSS_exception_1_0
  - | WxWindows_exception_3_1
- licenseExceptionId :: LicenseExceptionId -> String
- licenseExceptionName :: LicenseExceptionId -> String
- mkLicenseExceptionId :: LicenseListVersion -> String -> Maybe LicenseExceptionId
- licenseExceptionIdList :: LicenseListVersion -> [LicenseExceptionId]
- data LicenseRef
- licenseRef :: LicenseRef -> String
- licenseDocumentRef :: LicenseRef -> Maybe String
- mkLicenseRef :: Maybe String -> String -> Maybe LicenseRef
- mkLicenseRef' :: Maybe String -> String -> LicenseRef
- data LicenseListVersion
  - = LicenseListVersion_3_0
  - | LicenseListVersion_3_2
  - | LicenseListVersion_3_6
  - | LicenseListVersion_3_9
  - | LicenseListVersion_3_10
  - | LicenseListVersion_3_16
- cabalSpecVersionToSPDXListVersion :: CabalSpecVersion -> LicenseListVersion

# License

data License Source #

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:

- `AllRightsReserved` and `UnspecifiedLicense` to `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.
- `OtherLicense` can be converted to `LicenseRef` pointing to the file in the package.
- `UnknownLicense` i.e. other licenses of the form `name-x.y`, should be covered by SPDX license list, otherwise use `LicenseRef`.
- `PublicDomain` isn'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

NONE | if the package contains no license information whatsoever; or
License LicenseExpression | A valid SPDX License Expression as defined in Appendix IV.

#### Instances

Instances details

Parsec License Source # |
    >>> eitherParsec "BSD-3-Clause AND MIT" :: Either String License
    Right (License (EAnd (ELicense (ELicenseId BSD_3_Clause) Nothing) (ELicense (ELicenseId MIT) Nothing)))
    >>> eitherParsec "NONE" :: Either String License
    Right NONE
Instance details Defined in Distribution.SPDX.License Methods parsec :: CabalParsing m => m License Source #
Pretty License Source # |
Instance details Defined in Distribution.SPDX.License Methods pretty :: License -> Doc Source # prettyVersioned :: CabalSpecVersion -> License -> Doc Source #
Structured License Source # |
Instance details Defined in Distribution.SPDX.License Methods structure :: Proxy License -> Structure Source # structureHash' :: Tagged License MD5
Binary License Source # |
Instance details Defined in Distribution.SPDX.License Methods put :: License -> Put Source # get :: Get License Source # putList :: [License] -> Put Source #
NFData License Source # |
Instance details Defined in Distribution.SPDX.License Methods rnf :: License -> () Source #
Data License Source # |
Instance details Defined in Distribution.SPDX.License Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> License -> c License # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c License # toConstr :: License -> Constr # dataTypeOf :: License -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c License) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c License) # gmapT :: (forall b. Data b => b -> b) -> License -> License # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> License -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> License -> r # gmapQ :: (forall d. Data d => d -> u) -> License -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> License -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> License -> m License # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> License -> m License # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> License -> m License #
Generic License Source # |
Instance details Defined in Distribution.SPDX.License Associated Types
type Rep License |
Instance details Defined in Distribution.SPDX.License type Rep License = D1 ('MetaData "License" "Distribution.SPDX.License" "Cabal-syntax-3.11.0.0-f9cc" 'False) (C1 ('MetaCons "NONE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "License" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseExpression)))
Methods from :: License -> Rep License x # to :: Rep License x -> License #
Read License Source # |
Instance details Defined in Distribution.SPDX.License Methods readsPrec :: Int -> ReadS License # readList :: ReadS [License] # readPrec :: ReadPrec License # readListPrec :: ReadPrec [License] #
Show License Source # |
Instance details Defined in Distribution.SPDX.License Methods showsPrec :: Int -> License -> ShowS # show :: License -> String # showList :: [License] -> ShowS #
Eq License Source # |
Instance details Defined in Distribution.SPDX.License Methods (==) :: License -> License -> Bool # (/=) :: License -> License -> Bool #
Ord License Source # |
Instance details Defined in Distribution.SPDX.License Methods compare :: License -> License -> Ordering # (<) :: License -> License -> Bool # (<=) :: License -> License -> Bool # (>) :: License -> License -> Bool # (>=) :: License -> License -> Bool # max :: License -> License -> License # min :: License -> License -> License #
Newtype (Either License License) SpecLicense Source # |
Instance details Defined in Distribution.FieldGrammar.Newtypes Methods pack :: Either License License -> SpecLicense Source # unpack :: SpecLicense -> Either License License Source #
type Rep License Source # |
Instance details Defined in Distribution.SPDX.License type Rep License = D1 ('MetaData "License" "Distribution.SPDX.License" "Cabal-syntax-3.11.0.0-f9cc" 'False) (C1 ('MetaCons "NONE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "License" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseExpression)))

# License expression

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)

Constructors

ELicense !SimpleLicenseExpression !(Maybe LicenseExceptionId) |
EAnd !LicenseExpression !LicenseExpression |
EOr !LicenseExpression !LicenseExpression |

#### Instances

Instances details

Parsec LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods parsec :: CabalParsing m => m LicenseExpression Source #
Pretty LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods pretty :: LicenseExpression -> Doc Source # prettyVersioned :: CabalSpecVersion -> LicenseExpression -> Doc Source #
Structured LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods structure :: Proxy LicenseExpression -> Structure Source # structureHash' :: Tagged LicenseExpression MD5
Binary LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods put :: LicenseExpression -> Put Source # get :: Get LicenseExpression Source # putList :: [LicenseExpression] -> Put Source #
NFData LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods rnf :: LicenseExpression -> () Source #
Data LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LicenseExpression -> c LicenseExpression # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LicenseExpression # toConstr :: LicenseExpression -> Constr # dataTypeOf :: LicenseExpression -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LicenseExpression) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LicenseExpression) # gmapT :: (forall b. Data b => b -> b) -> LicenseExpression -> LicenseExpression # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LicenseExpression -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LicenseExpression -> r # gmapQ :: (forall d. Data d => d -> u) -> LicenseExpression -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> LicenseExpression -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> LicenseExpression -> m LicenseExpression # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseExpression -> m LicenseExpression # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseExpression -> m LicenseExpression #
Generic LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Associated Types
type Rep LicenseExpression |
Instance details Defined in Distribution.SPDX.LicenseExpression type Rep LicenseExpression = D1 ('MetaData "LicenseExpression" "Distribution.SPDX.LicenseExpression" "Cabal-syntax-3.11.0.0-f9cc" 'False) (C1 ('MetaCons "ELicense" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SimpleLicenseExpression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe LicenseExceptionId))) :+: (C1 ('MetaCons "EAnd" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LicenseExpression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LicenseExpression)) :+: C1 ('MetaCons "EOr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LicenseExpression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LicenseExpression))))
Methods from :: LicenseExpression -> Rep LicenseExpression x # to :: Rep LicenseExpression x -> LicenseExpression #
Read LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods readsPrec :: Int -> ReadS LicenseExpression # readList :: ReadS [LicenseExpression] # readPrec :: ReadPrec LicenseExpression # readListPrec :: ReadPrec [LicenseExpression] #
Show LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods showsPrec :: Int -> LicenseExpression -> ShowS # show :: LicenseExpression -> String # showList :: [LicenseExpression] -> ShowS #
Eq LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods (==) :: LicenseExpression -> LicenseExpression -> Bool # (/=) :: LicenseExpression -> LicenseExpression -> Bool #
Ord LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods compare :: LicenseExpression -> LicenseExpression -> Ordering # (<) :: LicenseExpression -> LicenseExpression -> Bool # (<=) :: LicenseExpression -> LicenseExpression -> Bool # (>) :: LicenseExpression -> LicenseExpression -> Bool # (>=) :: LicenseExpression -> LicenseExpression -> Bool # max :: LicenseExpression -> LicenseExpression -> LicenseExpression # min :: LicenseExpression -> LicenseExpression -> LicenseExpression #
type Rep LicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression type Rep LicenseExpression = D1 ('MetaData "LicenseExpression" "Distribution.SPDX.LicenseExpression" "Cabal-syntax-3.11.0.0-f9cc" 'False) (C1 ('MetaCons "ELicense" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SimpleLicenseExpression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe LicenseExceptionId))) :+: (C1 ('MetaCons "EAnd" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LicenseExpression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LicenseExpression)) :+: C1 ('MetaCons "EOr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LicenseExpression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LicenseExpression))))

data SimpleLicenseExpression Source #

Simple License Expressions.

Constructors

ELicenseId LicenseId | An SPDX License List Short Form Identifier. For example: `GPL-2.0-only`
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: `GPL-2.0+`
ELicenseRef LicenseRef | A SPDX user defined license reference: For example: `LicenseRef-23`, `LicenseRef-MIT-Style-1`, or `DocumentRef-spdx-tool-1.2:LicenseRef-MIT-Style-2`

#### Instances

Instances details

Parsec SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods parsec :: CabalParsing m => m SimpleLicenseExpression Source #
Pretty SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods pretty :: SimpleLicenseExpression -> Doc Source # prettyVersioned :: CabalSpecVersion -> SimpleLicenseExpression -> Doc Source #
Structured SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods structure :: Proxy SimpleLicenseExpression -> Structure Source # structureHash' :: Tagged SimpleLicenseExpression MD5
Binary SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods put :: SimpleLicenseExpression -> Put Source # get :: Get SimpleLicenseExpression Source # putList :: [SimpleLicenseExpression] -> Put Source #
NFData SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods rnf :: SimpleLicenseExpression -> () Source #
Data SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SimpleLicenseExpression -> c SimpleLicenseExpression # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SimpleLicenseExpression # toConstr :: SimpleLicenseExpression -> Constr # dataTypeOf :: SimpleLicenseExpression -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SimpleLicenseExpression) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SimpleLicenseExpression) # gmapT :: (forall b. Data b => b -> b) -> SimpleLicenseExpression -> SimpleLicenseExpression # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SimpleLicenseExpression -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SimpleLicenseExpression -> r # gmapQ :: (forall d. Data d => d -> u) -> SimpleLicenseExpression -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> SimpleLicenseExpression -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SimpleLicenseExpression -> m SimpleLicenseExpression # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SimpleLicenseExpression -> m SimpleLicenseExpression # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SimpleLicenseExpression -> m SimpleLicenseExpression #
Generic SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Associated Types
type Rep SimpleLicenseExpression |
Instance details Defined in Distribution.SPDX.LicenseExpression type Rep SimpleLicenseExpression = D1 ('MetaData "SimpleLicenseExpression" "Distribution.SPDX.LicenseExpression" "Cabal-syntax-3.11.0.0-f9cc" 'False) (C1 ('MetaCons "ELicenseId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseId)) :+: (C1 ('MetaCons "ELicenseIdPlus" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseId)) :+: C1 ('MetaCons "ELicenseRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseRef))))
Methods from :: SimpleLicenseExpression -> Rep SimpleLicenseExpression x # to :: Rep SimpleLicenseExpression x -> SimpleLicenseExpression #
Read SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods readsPrec :: Int -> ReadS SimpleLicenseExpression # readList :: ReadS [SimpleLicenseExpression] # readPrec :: ReadPrec SimpleLicenseExpression # readListPrec :: ReadPrec [SimpleLicenseExpression] #
Show SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods showsPrec :: Int -> SimpleLicenseExpression -> ShowS # show :: SimpleLicenseExpression -> String # showList :: [SimpleLicenseExpression] -> ShowS #
Eq SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods (==) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # (/=) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool #
Ord SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression Methods compare :: SimpleLicenseExpression -> SimpleLicenseExpression -> Ordering # (<) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # (<=) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # (>) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # (>=) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # max :: SimpleLicenseExpression -> SimpleLicenseExpression -> SimpleLicenseExpression # min :: SimpleLicenseExpression -> SimpleLicenseExpression -> SimpleLicenseExpression #
type Rep SimpleLicenseExpression Source # |
Instance details Defined in Distribution.SPDX.LicenseExpression type Rep SimpleLicenseExpression = D1 ('MetaData "SimpleLicenseExpression" "Distribution.SPDX.LicenseExpression" "Cabal-syntax-3.11.0.0-f9cc" 'False) (C1 ('MetaCons "ELicenseId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseId)) :+: (C1 ('MetaCons "ELicenseIdPlus" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseId)) :+: C1 ('MetaCons "ELicenseRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseRef))))

simpleLicenseExpression :: LicenseId -> LicenseExpression Source #

# License identifier

data LicenseId Source #

SPDX License identifiers list v3.16

Constructors

NullBSD | `0BSD`, BSD Zero Clause License
AAL | `AAL`, Attribution Assurance License
Abstyles | `Abstyles`, Abstyles License
Adobe_2006 | `Adobe-2006`, Adobe Systems Incorporated Source Code License Agreement
Adobe_Glyph | `Adobe-Glyph`, Adobe Glyph List License
ADSL | `ADSL`, Amazon Digital Services License
AFL_1_1 | `AFL-1.1`, Academic Free License v1.1
AFL_1_2 | `AFL-1.2`, Academic Free License v1.2
AFL_2_0 | `AFL-2.0`, Academic Free License v2.0
AFL_2_1 | `AFL-2.1`, Academic Free License v2.1
AFL_3_0 | `AFL-3.0`, Academic Free License v3.0
Afmparse | `Afmparse`, Afmparse License
AGPL_1_0 | `AGPL-1.0`, Affero General Public License v1.0, SPDX License List 3.0
AGPL_1_0_only | `AGPL-1.0-only`, Affero General Public License v1.0 only, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
AGPL_1_0_or_later | `AGPL-1.0-or-later`, Affero General Public License v1.0 or later, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
AGPL_3_0_only | `AGPL-3.0-only`, GNU Affero General Public License v3.0 only
AGPL_3_0_or_later | `AGPL-3.0-or-later`, GNU Affero General Public License v3.0 or later
Aladdin | `Aladdin`, Aladdin Free Public License
AMDPLPA | `AMDPLPA`, AMD's plpa_map.c License
AML | `AML`, Apple MIT License
AMPAS | `AMPAS`, Academy of Motion Picture Arts and Sciences BSD
ANTLR_PD_fallback | `ANTLR-PD-fallback`, ANTLR Software Rights Notice with license fallback, SPDX License List 3.16
ANTLR_PD | `ANTLR-PD`, ANTLR Software Rights Notice
Apache_1_0 | `Apache-1.0`, Apache License 1.0
Apache_1_1 | `Apache-1.1`, Apache License 1.1
Apache_2_0 | `Apache-2.0`, Apache License 2.0
APAFML | `APAFML`, Adobe Postscript AFM License
APL_1_0 | `APL-1.0`, Adaptive Public License 1.0
App_s2p | `App-s2p`, App::s2p License, SPDX License List 3.16
APSL_1_0 | `APSL-1.0`, Apple Public Source License 1.0
APSL_1_1 | `APSL-1.1`, Apple Public Source License 1.1
APSL_1_2 | `APSL-1.2`, Apple Public Source License 1.2
APSL_2_0 | `APSL-2.0`, Apple Public Source License 2.0
Artistic_1_0_cl8 | `Artistic-1.0-cl8`, Artistic License 1.0 w/clause 8
Artistic_1_0_Perl | `Artistic-1.0-Perl`, Artistic License 1.0 (Perl)
Artistic_1_0 | `Artistic-1.0`, Artistic License 1.0
Artistic_2_0 | `Artistic-2.0`, Artistic License 2.0
Bahyph | `Bahyph`, Bahyph License
Barr | `Barr`, Barr License
Beerware | `Beerware`, Beerware License
BitTorrent_1_0 | `BitTorrent-1.0`, BitTorrent Open Source License v1.0
BitTorrent_1_1 | `BitTorrent-1.1`, BitTorrent Open Source License v1.1
Blessing | `blessing`, SQLite Blessing, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
BlueOak_1_0_0 | `BlueOak-1.0.0`, Blue Oak Model License 1.0.0, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Borceux | `Borceux`, Borceux license
BSD_1_Clause | `BSD-1-Clause`, BSD 1-Clause License
BSD_2_Clause_FreeBSD | `BSD-2-Clause-FreeBSD`, BSD 2-Clause FreeBSD License, SPDX License List 3.0, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9
BSD_2_Clause_NetBSD | `BSD-2-Clause-NetBSD`, BSD 2-Clause NetBSD License, SPDX License List 3.0, SPDX License List 3.2, SPDX License List 3.6
BSD_2_Clause_Patent | `BSD-2-Clause-Patent`, BSD-2-Clause Plus Patent License
BSD_2_Clause_Views | `BSD-2-Clause-Views`, BSD 2-Clause with views sentence, SPDX License List 3.10, SPDX License List 3.16
BSD_2_Clause | `BSD-2-Clause`, BSD 2-Clause Simplified License
BSD_3_Clause_Attribution | `BSD-3-Clause-Attribution`, BSD with attribution
BSD_3_Clause_Clear | `BSD-3-Clause-Clear`, BSD 3-Clause Clear License
BSD_3_Clause_LBNL | `BSD-3-Clause-LBNL`, Lawrence Berkeley National Labs BSD variant license
BSD_3_Clause_Modification | `BSD-3-Clause-Modification`, BSD 3-Clause Modification, SPDX License List 3.16
BSD_3_Clause_No_Military_License | `BSD-3-Clause-No-Military-License`, BSD 3-Clause No Military License, SPDX License List 3.16
BSD_3_Clause_No_Nuclear_License_2014 | `BSD-3-Clause-No-Nuclear-License-2014`, BSD 3-Clause No Nuclear License 2014
BSD_3_Clause_No_Nuclear_License | `BSD-3-Clause-No-Nuclear-License`, BSD 3-Clause No Nuclear License
BSD_3_Clause_No_Nuclear_Warranty | `BSD-3-Clause-No-Nuclear-Warranty`, BSD 3-Clause No Nuclear Warranty
BSD_3_Clause_Open_MPI | `BSD-3-Clause-Open-MPI`, BSD 3-Clause Open MPI variant, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
BSD_3_Clause | `BSD-3-Clause`, BSD 3-Clause New or Revised License
BSD_4_Clause_Shortened | `BSD-4-Clause-Shortened`, BSD 4 Clause Shortened, SPDX License List 3.16
BSD_4_Clause_UC | `BSD-4-Clause-UC`, BSD-4-Clause (University of California-Specific)
BSD_4_Clause | `BSD-4-Clause`, BSD 4-Clause Original or Old License
BSD_Protection | `BSD-Protection`, BSD Protection License
BSD_Source_Code | `BSD-Source-Code`, BSD Source Code Attribution
BSL_1_0 | `BSL-1.0`, Boost Software License 1.0
Bzip2_1_0_5 | `bzip2-1.0.5`, bzip2 and libbzip2 License v1.0.5, SPDX License List 3.0, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10
BUSL_1_1 | `BUSL-1.1`, Business Source License 1.1, SPDX License List 3.16
Bzip2_1_0_6 | `bzip2-1.0.6`, bzip2 and libbzip2 License v1.0.6
C_UDA_1_0 | `C-UDA-1.0`, Computational Use of Data Agreement v1.0, SPDX License List 3.16
CAL_1_0_Combined_Work_Exception | `CAL-1.0-Combined-Work-Exception`, Cryptographic Autonomy License 1.0 (Combined Work Exception), SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
CAL_1_0 | `CAL-1.0`, Cryptographic Autonomy License 1.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Caldera | `Caldera`, Caldera License
CATOSL_1_1 | `CATOSL-1.1`, Computer Associates Trusted Open Source License 1.1
CC_BY_1_0 | `CC-BY-1.0`, Creative Commons Attribution 1.0 Generic
CC_BY_2_0 | `CC-BY-2.0`, Creative Commons Attribution 2.0 Generic
CC_BY_2_5_AU | `CC-BY-2.5-AU`, Creative Commons Attribution 2.5 Australia, SPDX License List 3.16
CC_BY_2_5 | `CC-BY-2.5`, Creative Commons Attribution 2.5 Generic
CC_BY_3_0_AT | `CC-BY-3.0-AT`, Creative Commons Attribution 3.0 Austria, SPDX License List 3.10, SPDX License List 3.16
CC_BY_3_0_DE | `CC-BY-3.0-DE`, Creative Commons Attribution 3.0 Germany, SPDX License List 3.16
CC_BY_3_0_NL | `CC-BY-3.0-NL`, Creative Commons Attribution 3.0 Netherlands, SPDX License List 3.16
CC_BY_3_0_US | `CC-BY-3.0-US`, Creative Commons Attribution 3.0 United States, SPDX License List 3.16
CC_BY_3_0 | `CC-BY-3.0`, Creative Commons Attribution 3.0 Unported
CC_BY_4_0 | `CC-BY-4.0`, Creative Commons Attribution 4.0 International
CC_BY_NC_1_0 | `CC-BY-NC-1.0`, Creative Commons Attribution Non Commercial 1.0 Generic
CC_BY_NC_2_0 | `CC-BY-NC-2.0`, Creative Commons Attribution Non Commercial 2.0 Generic
CC_BY_NC_2_5 | `CC-BY-NC-2.5`, Creative Commons Attribution Non Commercial 2.5 Generic
CC_BY_NC_3_0_DE | `CC-BY-NC-3.0-DE`, Creative Commons Attribution Non Commercial 3.0 Germany, SPDX License List 3.16
CC_BY_NC_3_0 | `CC-BY-NC-3.0`, Creative Commons Attribution Non Commercial 3.0 Unported
CC_BY_NC_4_0 | `CC-BY-NC-4.0`, Creative Commons Attribution Non Commercial 4.0 International
CC_BY_NC_ND_1_0 | `CC-BY-NC-ND-1.0`, Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic
CC_BY_NC_ND_2_0 | `CC-BY-NC-ND-2.0`, Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic
CC_BY_NC_ND_2_5 | `CC-BY-NC-ND-2.5`, Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic
CC_BY_NC_ND_3_0_DE | `CC-BY-NC-ND-3.0-DE`, Creative Commons Attribution Non Commercial No Derivatives 3.0 Germany, SPDX License List 3.16
CC_BY_NC_ND_3_0_IGO | `CC-BY-NC-ND-3.0-IGO`, Creative Commons Attribution Non Commercial No Derivatives 3.0 IGO, SPDX License List 3.10, SPDX License List 3.16
CC_BY_NC_ND_3_0 | `CC-BY-NC-ND-3.0`, Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported
CC_BY_NC_ND_4_0 | `CC-BY-NC-ND-4.0`, Creative Commons Attribution Non Commercial No Derivatives 4.0 International
CC_BY_NC_SA_1_0 | `CC-BY-NC-SA-1.0`, Creative Commons Attribution Non Commercial Share Alike 1.0 Generic
CC_BY_NC_SA_2_0_FR | `CC-BY-NC-SA-2.0-FR`, Creative Commons Attribution-NonCommercial-ShareAlike 2.0 France, SPDX License List 3.16
CC_BY_NC_SA_2_0_UK | `CC-BY-NC-SA-2.0-UK`, Creative Commons Attribution Non Commercial Share Alike 2.0 England and Wales, SPDX License List 3.16
CC_BY_NC_SA_2_0 | `CC-BY-NC-SA-2.0`, Creative Commons Attribution Non Commercial Share Alike 2.0 Generic
CC_BY_NC_SA_2_5 | `CC-BY-NC-SA-2.5`, Creative Commons Attribution Non Commercial Share Alike 2.5 Generic
CC_BY_NC_SA_3_0_DE | `CC-BY-NC-SA-3.0-DE`, Creative Commons Attribution Non Commercial Share Alike 3.0 Germany, SPDX License List 3.16
CC_BY_NC_SA_3_0_IGO | `CC-BY-NC-SA-3.0-IGO`, Creative Commons Attribution Non Commercial Share Alike 3.0 IGO, SPDX License List 3.16
CC_BY_NC_SA_3_0 | `CC-BY-NC-SA-3.0`, Creative Commons Attribution Non Commercial Share Alike 3.0 Unported
CC_BY_NC_SA_4_0 | `CC-BY-NC-SA-4.0`, Creative Commons Attribution Non Commercial Share Alike 4.0 International
CC_BY_ND_1_0 | `CC-BY-ND-1.0`, Creative Commons Attribution No Derivatives 1.0 Generic
CC_BY_ND_2_0 | `CC-BY-ND-2.0`, Creative Commons Attribution No Derivatives 2.0 Generic
CC_BY_ND_2_5 | `CC-BY-ND-2.5`, Creative Commons Attribution No Derivatives 2.5 Generic
CC_BY_ND_3_0_DE | `CC-BY-ND-3.0-DE`, Creative Commons Attribution No Derivatives 3.0 Germany, SPDX License List 3.16
CC_BY_ND_3_0 | `CC-BY-ND-3.0`, Creative Commons Attribution No Derivatives 3.0 Unported
CC_BY_ND_4_0 | `CC-BY-ND-4.0`, Creative Commons Attribution No Derivatives 4.0 International
CC_BY_SA_1_0 | `CC-BY-SA-1.0`, Creative Commons Attribution Share Alike 1.0 Generic
CC_BY_SA_2_0_UK | `CC-BY-SA-2.0-UK`, Creative Commons Attribution Share Alike 2.0 England and Wales, SPDX License List 3.16
CC_BY_SA_2_0 | `CC-BY-SA-2.0`, Creative Commons Attribution Share Alike 2.0 Generic
CC_BY_SA_2_1_JP | `CC-BY-SA-2.1-JP`, Creative Commons Attribution Share Alike 2.1 Japan, SPDX License List 3.16
CC_BY_SA_2_5 | `CC-BY-SA-2.5`, Creative Commons Attribution Share Alike 2.5 Generic
CC_BY_SA_3_0_AT | `CC-BY-SA-3.0-AT`, Creative Commons Attribution Share Alike 3.0 Austria, SPDX License List 3.10, SPDX License List 3.16
CC_BY_SA_3_0_DE | `CC-BY-SA-3.0-DE`, Creative Commons Attribution Share Alike 3.0 Germany, SPDX License List 3.16
CC_BY_SA_3_0 | `CC-BY-SA-3.0`, Creative Commons Attribution Share Alike 3.0 Unported
CC_BY_SA_4_0 | `CC-BY-SA-4.0`, Creative Commons Attribution Share Alike 4.0 International
CC_PDDC | `CC-PDDC`, Creative Commons Public Domain Dedication and Certification, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
CC0_1_0 | `CC0-1.0`, Creative Commons Zero v1.0 Universal
CDDL_1_0 | `CDDL-1.0`, Common Development and Distribution License 1.0
CDDL_1_1 | `CDDL-1.1`, Common Development and Distribution License 1.1
CDL_1_0 | `CDL-1.0`, Common Documentation License 1.0, SPDX License List 3.16
CDLA_Permissive_1_0 | `CDLA-Permissive-1.0`, Community Data License Agreement Permissive 1.0
CDLA_Permissive_2_0 | `CDLA-Permissive-2.0`, Community Data License Agreement Permissive 2.0, SPDX License List 3.16
CDLA_Sharing_1_0 | `CDLA-Sharing-1.0`, Community Data License Agreement Sharing 1.0
CECILL_1_0 | `CECILL-1.0`, CeCILL Free Software License Agreement v1.0
CECILL_1_1 | `CECILL-1.1`, CeCILL Free Software License Agreement v1.1
CECILL_2_0 | `CECILL-2.0`, CeCILL Free Software License Agreement v2.0
CECILL_2_1 | `CECILL-2.1`, CeCILL Free Software License Agreement v2.1
CECILL_B | `CECILL-B`, CeCILL-B Free Software License Agreement
CECILL_C | `CECILL-C`, CeCILL-C Free Software License Agreement
CERN_OHL_1_1 | `CERN-OHL-1.1`, CERN Open Hardware Licence v1.1, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
CERN_OHL_1_2 | `CERN-OHL-1.2`, CERN Open Hardware Licence v1.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
CERN_OHL_P_2_0 | `CERN-OHL-P-2.0`, CERN Open Hardware Licence Version 2 - Permissive, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
CERN_OHL_S_2_0 | `CERN-OHL-S-2.0`, CERN Open Hardware Licence Version 2 - Strongly Reciprocal, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
CERN_OHL_W_2_0 | `CERN-OHL-W-2.0`, CERN Open Hardware Licence Version 2 - Weakly Reciprocal, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
ClArtistic | `ClArtistic`, Clarified Artistic License
CNRI_Jython | `CNRI-Jython`, CNRI Jython License
CNRI_Python_GPL_Compatible | `CNRI-Python-GPL-Compatible`, CNRI Python Open Source GPL Compatible License Agreement
CNRI_Python | `CNRI-Python`, CNRI Python License
COIL_1_0 | `COIL-1.0`, Copyfree Open Innovation License, SPDX License List 3.16
Community_Spec_1_0 | `Community-Spec-1.0`, Community Specification License 1.0, SPDX License List 3.16
Condor_1_1 | `Condor-1.1`, Condor Public License v1.1
Copyleft_next_0_3_0 | `copyleft-next-0.3.0`, copyleft-next 0.3.0, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Copyleft_next_0_3_1 | `copyleft-next-0.3.1`, copyleft-next 0.3.1, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
CPAL_1_0 | `CPAL-1.0`, Common Public Attribution License 1.0
CPL_1_0 | `CPL-1.0`, Common Public License 1.0
CPOL_1_02 | `CPOL-1.02`, Code Project Open License 1.02
Crossword | `Crossword`, Crossword License
CrystalStacker | `CrystalStacker`, CrystalStacker License
CUA_OPL_1_0 | `CUA-OPL-1.0`, CUA Office Public License v1.0
Cube | `Cube`, Cube License
Curl | `curl`, curl License
D_FSL_1_0 | `D-FSL-1.0`, Deutsche Freie Software Lizenz
Diffmark | `diffmark`, diffmark license
DL_DE_BY_2_0 | `DL-DE-BY-2.0`, Data licence Germany – attribution – version 2.0, SPDX License List 3.16
DOC | `DOC`, DOC License
Dotseqn | `Dotseqn`, Dotseqn License
DRL_1_0 | `DRL-1.0`, Detection Rule License 1.0, SPDX License List 3.16
DSDP | `DSDP`, DSDP License
Dvipdfm | `dvipdfm`, dvipdfm License
ECL_1_0 | `ECL-1.0`, Educational Community License v1.0
ECL_2_0 | `ECL-2.0`, Educational Community License v2.0
EFL_1_0 | `EFL-1.0`, Eiffel Forum License v1.0
EFL_2_0 | `EFL-2.0`, Eiffel Forum License v2.0
EGenix | `eGenix`, eGenix.com Public License 1.1.0
Elastic_2_0 | `Elastic-2.0`, Elastic License 2.0, SPDX License List 3.16
Entessa | `Entessa`, Entessa Public License v1.0
EPICS | `EPICS`, EPICS Open License, SPDX License List 3.10, SPDX License List 3.16
EPL_1_0 | `EPL-1.0`, Eclipse Public License 1.0
EPL_2_0 | `EPL-2.0`, Eclipse Public License 2.0
ErlPL_1_1 | `ErlPL-1.1`, Erlang Public License v1.1
Etalab_2_0 | `etalab-2.0`, Etalab Open License 2.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
EUDatagrid | `EUDatagrid`, EU DataGrid Software License
EUPL_1_0 | `EUPL-1.0`, European Union Public License 1.0
EUPL_1_1 | `EUPL-1.1`, European Union Public License 1.1
EUPL_1_2 | `EUPL-1.2`, European Union Public License 1.2
Eurosym | `Eurosym`, Eurosym License
Fair | `Fair`, Fair License
FDK_AAC | `FDK-AAC`, Fraunhofer FDK AAC Codec Library, SPDX License List 3.16
Frameworx_1_0 | `Frameworx-1.0`, Frameworx Open License 1.0
FreeBSD_DOC | `FreeBSD-DOC`, FreeBSD Documentation License, SPDX License List 3.16
FreeImage | `FreeImage`, FreeImage Public License v1.0
FSFAP | `FSFAP`, FSF All Permissive License
FSFULLR | `FSFULLR`, FSF Unlimited License (with License Retention)
FSFUL | `FSFUL`, FSF Unlimited License
FTL | `FTL`, Freetype Project License
GD | `GD`, GD License, SPDX License List 3.16
GFDL_1_1_invariants_only | `GFDL-1.1-invariants-only`, GNU Free Documentation License v1.1 only - invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_1_invariants_or_later | `GFDL-1.1-invariants-or-later`, GNU Free Documentation License v1.1 or later - invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_1_no_invariants_only | `GFDL-1.1-no-invariants-only`, GNU Free Documentation License v1.1 only - no invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_1_no_invariants_or_later | `GFDL-1.1-no-invariants-or-later`, GNU Free Documentation License v1.1 or later - no invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_1_only | `GFDL-1.1-only`, GNU Free Documentation License v1.1 only
GFDL_1_1_or_later | `GFDL-1.1-or-later`, GNU Free Documentation License v1.1 or later
GFDL_1_2_invariants_only | `GFDL-1.2-invariants-only`, GNU Free Documentation License v1.2 only - invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_2_invariants_or_later | `GFDL-1.2-invariants-or-later`, GNU Free Documentation License v1.2 or later - invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_2_no_invariants_only | `GFDL-1.2-no-invariants-only`, GNU Free Documentation License v1.2 only - no invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_2_no_invariants_or_later | `GFDL-1.2-no-invariants-or-later`, GNU Free Documentation License v1.2 or later - no invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_2_only | `GFDL-1.2-only`, GNU Free Documentation License v1.2 only
GFDL_1_2_or_later | `GFDL-1.2-or-later`, GNU Free Documentation License v1.2 or later
GFDL_1_3_invariants_only | `GFDL-1.3-invariants-only`, GNU Free Documentation License v1.3 only - invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_3_invariants_or_later | `GFDL-1.3-invariants-or-later`, GNU Free Documentation License v1.3 or later - invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_3_no_invariants_only | `GFDL-1.3-no-invariants-only`, GNU Free Documentation License v1.3 only - no invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_3_no_invariants_or_later | `GFDL-1.3-no-invariants-or-later`, GNU Free Documentation License v1.3 or later - no invariants, SPDX License List 3.10, SPDX License List 3.16
GFDL_1_3_only | `GFDL-1.3-only`, GNU Free Documentation License v1.3 only
GFDL_1_3_or_later | `GFDL-1.3-or-later`, GNU Free Documentation License v1.3 or later
Giftware | `Giftware`, Giftware License
GL2PS | `GL2PS`, GL2PS License
Glide | `Glide`, 3dfx Glide License
Glulxe | `Glulxe`, Glulxe License
GLWTPL | `GLWTPL`, Good Luck With That Public License, SPDX License List 3.10, SPDX License List 3.16
Gnuplot | `gnuplot`, gnuplot License
GPL_1_0_only | `GPL-1.0-only`, GNU General Public License v1.0 only
GPL_1_0_or_later | `GPL-1.0-or-later`, GNU General Public License v1.0 or later
GPL_2_0_only | `GPL-2.0-only`, GNU General Public License v2.0 only
GPL_2_0_or_later | `GPL-2.0-or-later`, GNU General Public License v2.0 or later
GPL_3_0_only | `GPL-3.0-only`, GNU General Public License v3.0 only
GPL_3_0_or_later | `GPL-3.0-or-later`, GNU General Public License v3.0 or later
GSOAP_1_3b | `gSOAP-1.3b`, gSOAP Public License v1.3b
HaskellReport | `HaskellReport`, Haskell Language Report License
Hippocratic_2_1 | `Hippocratic-2.1`, Hippocratic License 2.1, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
HPND_sell_variant | `HPND-sell-variant`, Historical Permission Notice and Disclaimer - sell variant, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
HPND | `HPND`, Historical Permission Notice and Disclaimer
HTMLTIDY | `HTMLTIDY`, HTML Tidy License, SPDX License List 3.16
IBM_pibs | `IBM-pibs`, IBM PowerPC Initialization and Boot Software
ICU | `ICU`, ICU License
IJG | `IJG`, Independent JPEG Group License
ImageMagick | `ImageMagick`, ImageMagick License
IMatix | `iMatix`, iMatix Standard Function Library Agreement
Imlib2 | `Imlib2`, Imlib2 License
Info_ZIP | `Info-ZIP`, Info-ZIP License
Intel_ACPI | `Intel-ACPI`, Intel ACPI Software License Agreement
Intel | `Intel`, Intel Open Source License
Interbase_1_0 | `Interbase-1.0`, Interbase Public License v1.0
IPA | `IPA`, IPA Font License
IPL_1_0 | `IPL-1.0`, IBM Public License v1.0
ISC | `ISC`, ISC License
Jam | `Jam`, Jam License, SPDX License List 3.16
JasPer_2_0 | `JasPer-2.0`, JasPer License
JPNIC | `JPNIC`, Japan Network Information Center License, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
JSON | `JSON`, JSON License
LAL_1_2 | `LAL-1.2`, Licence Art Libre 1.2
LAL_1_3 | `LAL-1.3`, Licence Art Libre 1.3
Latex2e | `Latex2e`, Latex2e License
Leptonica | `Leptonica`, Leptonica License
LGPL_2_0_only | `LGPL-2.0-only`, GNU Library General Public License v2 only
LGPL_2_0_or_later | `LGPL-2.0-or-later`, GNU Library General Public License v2 or later
LGPL_2_1_only | `LGPL-2.1-only`, GNU Lesser General Public License v2.1 only
LGPL_2_1_or_later | `LGPL-2.1-or-later`, GNU Lesser General Public License v2.1 or later
LGPL_3_0_only | `LGPL-3.0-only`, GNU Lesser General Public License v3.0 only
LGPL_3_0_or_later | `LGPL-3.0-or-later`, GNU Lesser General Public License v3.0 or later
LGPLLR | `LGPLLR`, Lesser General Public License For Linguistic Resources
Libpng_2_0 | `libpng-2.0`, PNG Reference Library version 2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Libpng | `Libpng`, libpng License
Libselinux_1_0 | `libselinux-1.0`, libselinux public domain notice, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Libtiff | `libtiff`, libtiff License
LiLiQ_P_1_1 | `LiLiQ-P-1.1`, Licence Libre du Québec – Permissive version 1.1
LiLiQ_R_1_1 | `LiLiQ-R-1.1`, Licence Libre du Québec – Réciprocité version 1.1
LiLiQ_Rplus_1_1 | `LiLiQ-Rplus-1.1`, Licence Libre du Québec – Réciprocité forte version 1.1
Linux_man_pages_copyleft | `Linux-man-pages-copyleft`, Linux man-pages Copyleft, SPDX License List 3.16
Linux_OpenIB | `Linux-OpenIB`, Linux Kernel Variant of OpenIB.org license, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
LPL_1_02 | `LPL-1.02`, Lucent Public License v1.02
LPL_1_0 | `LPL-1.0`, Lucent Public License Version 1.0
LPPL_1_0 | `LPPL-1.0`, LaTeX Project Public License v1.0
LPPL_1_1 | `LPPL-1.1`, LaTeX Project Public License v1.1
LPPL_1_2 | `LPPL-1.2`, LaTeX Project Public License v1.2
LPPL_1_3a | `LPPL-1.3a`, LaTeX Project Public License v1.3a
LPPL_1_3c | `LPPL-1.3c`, LaTeX Project Public License v1.3c
MakeIndex | `MakeIndex`, MakeIndex License
MirOS | `MirOS`, The MirOS Licence
MIT_0 | `MIT-0`, MIT No Attribution, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
MIT_advertising | `MIT-advertising`, Enlightenment License (e16)
MIT_CMU | `MIT-CMU`, CMU License
MIT_enna | `MIT-enna`, enna License
MIT_feh | `MIT-feh`, feh License
MIT_Modern_Variant | `MIT-Modern-Variant`, MIT License Modern Variant, SPDX License List 3.16
MIT_open_group | `MIT-open-group`, MIT Open Group variant, SPDX License List 3.16
MITNFA | `MITNFA`, MIT +no-false-attribs license
MIT | `MIT`, MIT License
Motosoto | `Motosoto`, Motosoto License
Mpich2 | `mpich2`, mpich2 License
MPL_1_0 | `MPL-1.0`, Mozilla Public License 1.0
MPL_1_1 | `MPL-1.1`, Mozilla Public License 1.1
MPL_2_0_no_copyleft_exception | `MPL-2.0-no-copyleft-exception`, Mozilla Public License 2.0 (no copyleft exception)
MPL_2_0 | `MPL-2.0`, Mozilla Public License 2.0
MS_PL | `MS-PL`, Microsoft Public License
MS_RL | `MS-RL`, Microsoft Reciprocal License
MTLL | `MTLL`, Matrix Template Library License
MulanPSL_1_0 | `MulanPSL-1.0`, Mulan Permissive Software License, Version 1, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
MulanPSL_2_0 | `MulanPSL-2.0`, Mulan Permissive Software License, Version 2, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Multics | `Multics`, Multics License
Mup | `Mup`, Mup License
NAIST_2003 | `NAIST-2003`, Nara Institute of Science and Technology License (2003), SPDX License List 3.16
NASA_1_3 | `NASA-1.3`, NASA Open Source Agreement 1.3
Naumen | `Naumen`, Naumen Public License
NBPL_1_0 | `NBPL-1.0`, Net Boolean Public License v1
NCGL_UK_2_0 | `NCGL-UK-2.0`, Non-Commercial Government Licence, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
NCSA | `NCSA`, University of Illinois/NCSA Open Source License
Net_SNMP | `Net-SNMP`, Net-SNMP License
NetCDF | `NetCDF`, NetCDF license
Newsletr | `Newsletr`, Newsletr License
NGPL | `NGPL`, Nethack General Public License
NIST_PD_fallback | `NIST-PD-fallback`, NIST Public Domain Notice with license fallback, SPDX License List 3.10, SPDX License List 3.16
NIST_PD | `NIST-PD`, NIST Public Domain Notice, SPDX License List 3.10, SPDX License List 3.16
NLOD_1_0 | `NLOD-1.0`, Norwegian Licence for Open Government Data (NLOD) 1.0
NLOD_2_0 | `NLOD-2.0`, Norwegian Licence for Open Government Data (NLOD) 2.0, SPDX License List 3.16
NLPL | `NLPL`, No Limit Public License
Nokia | `Nokia`, Nokia Open Source License
NOSL | `NOSL`, Netizen Open Source License
Noweb | `Noweb`, Noweb License
NPL_1_0 | `NPL-1.0`, Netscape Public License v1.0
NPL_1_1 | `NPL-1.1`, Netscape Public License v1.1
NPOSL_3_0 | `NPOSL-3.0`, Non-Profit Open Software License 3.0
NRL | `NRL`, NRL License
NTP_0 | `NTP-0`, NTP No Attribution, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
NTP | `NTP`, NTP License
O_UDA_1_0 | `O-UDA-1.0`, Open Use of Data Agreement v1.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OCCT_PL | `OCCT-PL`, Open CASCADE Technology Public License
OCLC_2_0 | `OCLC-2.0`, OCLC Research Public License 2.0
ODbL_1_0 | `ODbL-1.0`, Open Data Commons Open Database License v1.0
ODC_By_1_0 | `ODC-By-1.0`, Open Data Commons Attribution License v1.0, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OFL_1_0_no_RFN | `OFL-1.0-no-RFN`, SIL Open Font License 1.0 with no Reserved Font Name, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OFL_1_0_RFN | `OFL-1.0-RFN`, SIL Open Font License 1.0 with Reserved Font Name, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OFL_1_0 | `OFL-1.0`, SIL Open Font License 1.0
OFL_1_1_no_RFN | `OFL-1.1-no-RFN`, SIL Open Font License 1.1 with no Reserved Font Name, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OFL_1_1_RFN | `OFL-1.1-RFN`, SIL Open Font License 1.1 with Reserved Font Name, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OFL_1_1 | `OFL-1.1`, SIL Open Font License 1.1
OGC_1_0 | `OGC-1.0`, OGC Software License, Version 1.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OGDL_Taiwan_1_0 | `OGDL-Taiwan-1.0`, Taiwan Open Government Data License, version 1.0, SPDX License List 3.16
OGL_Canada_2_0 | `OGL-Canada-2.0`, Open Government Licence - Canada, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OGL_UK_1_0 | `OGL-UK-1.0`, Open Government Licence v1.0, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OGL_UK_2_0 | `OGL-UK-2.0`, Open Government Licence v2.0, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OGL_UK_3_0 | `OGL-UK-3.0`, Open Government Licence v3.0, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OGTSL | `OGTSL`, Open Group Test Suite License
OLDAP_1_1 | `OLDAP-1.1`, Open LDAP Public License v1.1
OLDAP_1_2 | `OLDAP-1.2`, Open LDAP Public License v1.2
OLDAP_1_3 | `OLDAP-1.3`, Open LDAP Public License v1.3
OLDAP_1_4 | `OLDAP-1.4`, Open LDAP Public License v1.4
OLDAP_2_0_1 | `OLDAP-2.0.1`, Open LDAP Public License v2.0.1
OLDAP_2_0 | `OLDAP-2.0`, Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)
OLDAP_2_1 | `OLDAP-2.1`, Open LDAP Public License v2.1
OLDAP_2_2_1 | `OLDAP-2.2.1`, Open LDAP Public License v2.2.1
OLDAP_2_2_2 | `OLDAP-2.2.2`, Open LDAP Public License 2.2.2
OLDAP_2_2 | `OLDAP-2.2`, Open LDAP Public License v2.2
OLDAP_2_3 | `OLDAP-2.3`, Open LDAP Public License v2.3
OLDAP_2_4 | `OLDAP-2.4`, Open LDAP Public License v2.4
OLDAP_2_5 | `OLDAP-2.5`, Open LDAP Public License v2.5
OLDAP_2_6 | `OLDAP-2.6`, Open LDAP Public License v2.6
OLDAP_2_7 | `OLDAP-2.7`, Open LDAP Public License v2.7
OLDAP_2_8 | `OLDAP-2.8`, Open LDAP Public License v2.8
OML | `OML`, Open Market License
OpenSSL | `OpenSSL`, OpenSSL License
OPL_1_0 | `OPL-1.0`, Open Public License v1.0
OPUBL_1_0 | `OPUBL-1.0`, Open Publication License v1.0, SPDX License List 3.16
OSET_PL_2_1 | `OSET-PL-2.1`, OSET Public License version 2.1
OSL_1_0 | `OSL-1.0`, Open Software License 1.0
OSL_1_1 | `OSL-1.1`, Open Software License 1.1
OSL_2_0 | `OSL-2.0`, Open Software License 2.0
OSL_2_1 | `OSL-2.1`, Open Software License 2.1
OSL_3_0 | `OSL-3.0`, Open Software License 3.0
Parity_6_0_0 | `Parity-6.0.0`, The Parity Public License 6.0.0, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Parity_7_0_0 | `Parity-7.0.0`, The Parity Public License 7.0.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
PDDL_1_0 | `PDDL-1.0`, Open Data Commons Public Domain Dedication & License 1.0
PHP_3_01 | `PHP-3.01`, PHP License v3.01
PHP_3_0 | `PHP-3.0`, PHP License v3.0
Plexus | `Plexus`, Plexus Classworlds License
PolyForm_Noncommercial_1_0_0 | `PolyForm-Noncommercial-1.0.0`, PolyForm Noncommercial License 1.0.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
PolyForm_Small_Business_1_0_0 | `PolyForm-Small-Business-1.0.0`, PolyForm Small Business License 1.0.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
PostgreSQL | `PostgreSQL`, PostgreSQL License
PSF_2_0 | `PSF-2.0`, Python Software Foundation License 2.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Psfrag | `psfrag`, psfrag License
Psutils | `psutils`, psutils License
Python_2_0 | `Python-2.0`, Python License 2.0
Qhull | `Qhull`, Qhull License
QPL_1_0 | `QPL-1.0`, Q Public License 1.0
Rdisc | `Rdisc`, Rdisc License
RHeCos_1_1 | `RHeCos-1.1`, Red Hat eCos Public License v1.1
RPL_1_1 | `RPL-1.1`, Reciprocal Public License 1.1
RPL_1_5 | `RPL-1.5`, Reciprocal Public License 1.5
RPSL_1_0 | `RPSL-1.0`, RealNetworks Public Source License v1.0
RSA_MD | `RSA-MD`, RSA Message-Digest License
RSCPL | `RSCPL`, Ricoh Source Code Public License
Ruby | `Ruby`, Ruby License
SAX_PD | `SAX-PD`, Sax Public Domain Notice
Saxpath | `Saxpath`, Saxpath License
SCEA | `SCEA`, SCEA Shared Source License
SchemeReport | `SchemeReport`, Scheme Language Report License, SPDX License List 3.16
Sendmail_8_23 | `Sendmail-8.23`, Sendmail License 8.23, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Sendmail | `Sendmail`, Sendmail License
SGI_B_1_0 | `SGI-B-1.0`, SGI Free Software License B v1.0
SGI_B_1_1 | `SGI-B-1.1`, SGI Free Software License B v1.1
SGI_B_2_0 | `SGI-B-2.0`, SGI Free Software License B v2.0
SHL_0_51 | `SHL-0.51`, Solderpad Hardware License, Version 0.51, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
SHL_0_5 | `SHL-0.5`, Solderpad Hardware License v0.5, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
SimPL_2_0 | `SimPL-2.0`, Simple Public License 2.0
SISSL_1_2 | `SISSL-1.2`, Sun Industry Standards Source License v1.2
SISSL | `SISSL`, Sun Industry Standards Source License v1.1
Sleepycat | `Sleepycat`, Sleepycat License
SMLNJ | `SMLNJ`, Standard ML of New Jersey License
SMPPL | `SMPPL`, Secure Messaging Protocol Public License
SNIA | `SNIA`, SNIA Public License 1.1
Spencer_86 | `Spencer-86`, Spencer License 86
Spencer_94 | `Spencer-94`, Spencer License 94
Spencer_99 | `Spencer-99`, Spencer License 99
SPL_1_0 | `SPL-1.0`, Sun Public License v1.0
SSH_OpenSSH | `SSH-OpenSSH`, SSH OpenSSH license, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
SSH_short | `SSH-short`, SSH short notice, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
SSPL_1_0 | `SSPL-1.0`, Server Side Public License, v 1, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
SugarCRM_1_1_3 | `SugarCRM-1.1.3`, SugarCRM Public License v1.1.3
SWL | `SWL`, Scheme Widget Library (SWL) Software License Agreement
TAPR_OHL_1_0 | `TAPR-OHL-1.0`, TAPR Open Hardware License v1.0, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
TCL | `TCL`, TCL/TK License
TCP_wrappers | `TCP-wrappers`, TCP Wrappers License
TMate | `TMate`, TMate Open Source License
TORQUE_1_1 | `TORQUE-1.1`, TORQUE v2.5+ Software License v1.1
TOSL | `TOSL`, Trusster Open Source License
TU_Berlin_1_0 | `TU-Berlin-1.0`, Technische Universitaet Berlin License 1.0, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
TU_Berlin_2_0 | `TU-Berlin-2.0`, Technische Universitaet Berlin License 2.0, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
UCL_1_0 | `UCL-1.0`, Upstream Compatibility License v1.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Unicode_DFS_2015 | `Unicode-DFS-2015`, Unicode License Agreement - Data Files and Software (2015)
Unicode_DFS_2016 | `Unicode-DFS-2016`, Unicode License Agreement - Data Files and Software (2016)
Unicode_TOU | `Unicode-TOU`, Unicode Terms of Use
Unlicense | `Unlicense`, The Unlicense
UPL_1_0 | `UPL-1.0`, Universal Permissive License v1.0
Vim | `Vim`, Vim License
VOSTROM | `VOSTROM`, VOSTROM Public License for Open Source
VSL_1_0 | `VSL-1.0`, Vovida Software License v1.0
W3C_19980720 | `W3C-19980720`, W3C Software Notice and License (1998-07-20)
W3C_20150513 | `W3C-20150513`, W3C Software Notice and Document License (2015-05-13)
W3C | `W3C`, W3C Software Notice and License (2002-12-31)
Watcom_1_0 | `Watcom-1.0`, Sybase Open Watcom Public License 1.0
Wsuipa | `Wsuipa`, Wsuipa License
WTFPL | `WTFPL`, Do What The F*ck You Want To Public License
X11_distribute_modifications_variant | `X11-distribute-modifications-variant`, X11 License Distribution Modification Variant, SPDX License List 3.16
X11 | `X11`, X11 License
Xerox | `Xerox`, Xerox License
XFree86_1_1 | `XFree86-1.1`, XFree86 License 1.1
Xinetd | `xinetd`, xinetd License
Xnet | `Xnet`, X.Net License
Xpp | `xpp`, XPP License
XSkat | `XSkat`, XSkat License
YPL_1_0 | `YPL-1.0`, Yahoo! Public License v1.0
YPL_1_1 | `YPL-1.1`, Yahoo! Public License v1.1
Zed | `Zed`, Zed License
Zend_2_0 | `Zend-2.0`, Zend License v2.0
Zimbra_1_3 | `Zimbra-1.3`, Zimbra Public License v1.3
Zimbra_1_4 | `Zimbra-1.4`, Zimbra Public License v1.4
Zlib_acknowledgement | `zlib-acknowledgement`, zlib/libpng License with Acknowledgement
Zlib | `Zlib`, zlib License
ZPL_1_1 | `ZPL-1.1`, Zope Public License 1.1
ZPL_2_0 | `ZPL-2.0`, Zope Public License 2.0
ZPL_2_1 | `ZPL-2.1`, Zope Public License 2.1

#### Instances

Instances details

Parsec LicenseId Source # |
    >>> eitherParsec "BSD-3-Clause" :: Either String LicenseId
    Right BSD_3_Clause
    >>> eitherParsec "BSD3" :: Either String LicenseId
    Left "...Unknown SPDX license identifier: 'BSD3' Do you mean BSD-3-Clause?"
Instance details Defined in Distribution.SPDX.LicenseId Methods parsec :: CabalParsing m => m LicenseId Source #
Pretty LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods pretty :: LicenseId -> Doc Source # prettyVersioned :: CabalSpecVersion -> LicenseId -> Doc Source #
Structured LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods structure :: Proxy LicenseId -> Structure Source # structureHash' :: Tagged LicenseId MD5
Binary LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods put :: LicenseId -> Put Source # get :: Get LicenseId Source # putList :: [LicenseId] -> Put Source #
NFData LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods rnf :: LicenseId -> () Source #
Data LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LicenseId -> c LicenseId # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LicenseId # toConstr :: LicenseId -> Constr # dataTypeOf :: LicenseId -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LicenseId) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LicenseId) # gmapT :: (forall b. Data b => b -> b) -> LicenseId -> LicenseId # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LicenseId -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LicenseId -> r # gmapQ :: (forall d. Data d => d -> u) -> LicenseId -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> LicenseId -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> LicenseId -> m LicenseId # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseId -> m LicenseId # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseId -> m LicenseId #
Bounded LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods minBound :: LicenseId # maxBound :: LicenseId #
Enum LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods succ :: LicenseId -> LicenseId # pred :: LicenseId -> LicenseId # toEnum :: Int -> LicenseId # fromEnum :: LicenseId -> Int # enumFrom :: LicenseId -> [LicenseId] # enumFromThen :: LicenseId -> LicenseId -> [LicenseId] # enumFromTo :: LicenseId -> LicenseId -> [LicenseId] # enumFromThenTo :: LicenseId -> LicenseId -> LicenseId -> [LicenseId] #
Read LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods readsPrec :: Int -> ReadS LicenseId # readList :: ReadS [LicenseId] # readPrec :: ReadPrec LicenseId # readListPrec :: ReadPrec [LicenseId] #
Show LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods showsPrec :: Int -> LicenseId -> ShowS # show :: LicenseId -> String # showList :: [LicenseId] -> ShowS #
Eq LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods (==) :: LicenseId -> LicenseId -> Bool # (/=) :: LicenseId -> LicenseId -> Bool #
Ord LicenseId Source # |
Instance details Defined in Distribution.SPDX.LicenseId Methods compare :: LicenseId -> LicenseId -> Ordering # (<) :: LicenseId -> LicenseId -> Bool # (<=) :: LicenseId -> LicenseId -> Bool # (>) :: LicenseId -> LicenseId -> Bool # (>=) :: LicenseId -> LicenseId -> Bool # max :: LicenseId -> LicenseId -> LicenseId # min :: LicenseId -> LicenseId -> LicenseId #

licenseId :: LicenseId -> String Source #

License SPDX identifier, e.g. `"BSD-3-Clause"`.

licenseName :: LicenseId -> String Source #

License name, e.g. `"GNU General Public License v2.0 only"`

licenseIsOsiApproved :: LicenseId -> Bool Source #

Whether the license is approved by Open Source Initiative (OSI).

See https://opensource.org/licenses/alphabetical.

mkLicenseId :: LicenseListVersion -> String -> Maybe LicenseId Source #

Create a `LicenseId` from a `String`.

licenseIdList :: LicenseListVersion -> [LicenseId] Source #

# License exception

data LicenseExceptionId Source #

SPDX License Exceptions identifiers list v3.16

Constructors

DS389_exception | `389-exception`, 389 Directory Server Exception
Autoconf_exception_2_0 | `Autoconf-exception-2.0`, Autoconf exception 2.0
Autoconf_exception_3_0 | `Autoconf-exception-3.0`, Autoconf exception 3.0
Bison_exception_2_2 | `Bison-exception-2.2`, Bison exception 2.2
Bootloader_exception | `Bootloader-exception`, Bootloader Distribution Exception
Classpath_exception_2_0 | `Classpath-exception-2.0`, Classpath exception 2.0
CLISP_exception_2_0 | `CLISP-exception-2.0`, CLISP exception 2.0
DigiRule_FOSS_exception | `DigiRule-FOSS-exception`, DigiRule FOSS License Exception
ECos_exception_2_0 | `eCos-exception-2.0`, eCos exception 2.0
Fawkes_Runtime_exception | `Fawkes-Runtime-exception`, Fawkes Runtime Exception
FLTK_exception | `FLTK-exception`, FLTK exception
Font_exception_2_0 | `Font-exception-2.0`, Font exception 2.0
Freertos_exception_2_0 | `freertos-exception-2.0`, FreeRTOS Exception 2.0
GCC_exception_2_0 | `GCC-exception-2.0`, GCC Runtime Library exception 2.0
GCC_exception_3_1 | `GCC-exception-3.1`, GCC Runtime Library exception 3.1
Gnu_javamail_exception | `gnu-javamail-exception`, GNU JavaMail exception
GPL_3_0_linking_exception | `GPL-3.0-linking-exception`, GPL-3.0 Linking Exception, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
GPL_3_0_linking_source_exception | `GPL-3.0-linking-source-exception`, GPL-3.0 Linking Exception (with Corresponding Source), SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
GPL_CC_1_0 | `GPL-CC-1.0`, GPL Cooperation Commitment 1.0, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
I2p_gpl_java_exception | `i2p-gpl-java-exception`, i2p GPL+Java Exception
LGPL_3_0_linking_exception | `LGPL-3.0-linking-exception`, LGPL-3.0 Linking Exception, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Libtool_exception | `Libtool-exception`, Libtool Exception
Linux_syscall_note | `Linux-syscall-note`, Linux Syscall Note
LLVM_exception | `LLVM-exception`, LLVM Exception, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
LZMA_exception | `LZMA-exception`, LZMA exception
Mif_exception | `mif-exception`, Macros and Inline Functions Exception
Nokia_Qt_exception_1_1 | `Nokia-Qt-exception-1.1`, Nokia Qt LGPL exception 1.1, SPDX License List 3.0, SPDX License List 3.2
OCaml_LGPL_linking_exception | `OCaml-LGPL-linking-exception`, OCaml LGPL Linking Exception, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
OCCT_exception_1_0 | `OCCT-exception-1.0`, Open CASCADE Exception 1.0
OpenJDK_assembly_exception_1_0 | `OpenJDK-assembly-exception-1.0`, OpenJDK Assembly exception 1.0, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Openvpn_openssl_exception | `openvpn-openssl-exception`, OpenVPN OpenSSL Exception
PS_or_PDF_font_exception_20170817 | `PS-or-PDF-font-exception-20170817`, PS/PDF font exception (2017-08-17), SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Qt_GPL_exception_1_0 | `Qt-GPL-exception-1.0`, Qt GPL exception 1.0, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Qt_LGPL_exception_1_1 | `Qt-LGPL-exception-1.1`, Qt LGPL exception 1.1, SPDX License List 3.2, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Qwt_exception_1_0 | `Qwt-exception-1.0`, Qwt exception 1.0
SHL_2_0 | `SHL-2.0`, Solderpad Hardware License v2.0, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
SHL_2_1 | `SHL-2.1`, Solderpad Hardware License v2.1, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
Swift_exception | `Swift-exception`, Swift Exception, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
U_boot_exception_2_0 | `u-boot-exception-2.0`, U-Boot exception 2.0
Universal_FOSS_exception_1_0 | `Universal-FOSS-exception-1.0`, Universal FOSS Exception, Version 1.0, SPDX License List 3.6, SPDX License List 3.9, SPDX License List 3.10, SPDX License List 3.16
WxWindows_exception_3_1 | `WxWindows-exception-3.1`, WxWindows Library Exception 3.1

#### Instances

Instances details

Parsec LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods parsec :: CabalParsing m => m LicenseExceptionId Source #
Pretty LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods pretty :: LicenseExceptionId -> Doc Source # prettyVersioned :: CabalSpecVersion -> LicenseExceptionId -> Doc Source #
Structured LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods structure :: Proxy LicenseExceptionId -> Structure Source # structureHash' :: Tagged LicenseExceptionId MD5
Binary LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods put :: LicenseExceptionId -> Put Source # get :: Get LicenseExceptionId Source # putList :: [LicenseExceptionId] -> Put Source #
NFData LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods rnf :: LicenseExceptionId -> () Source #
Data LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LicenseExceptionId -> c LicenseExceptionId # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LicenseExceptionId # toConstr :: LicenseExceptionId -> Constr # dataTypeOf :: LicenseExceptionId -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LicenseExceptionId) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LicenseExceptionId) # gmapT :: (forall b. Data b => b -> b) -> LicenseExceptionId -> LicenseExceptionId # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LicenseExceptionId -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LicenseExceptionId -> r # gmapQ :: (forall d. Data d => d -> u) -> LicenseExceptionId -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> LicenseExceptionId -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> LicenseExceptionId -> m LicenseExceptionId # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseExceptionId -> m LicenseExceptionId # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseExceptionId -> m LicenseExceptionId #
Bounded LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods minBound :: LicenseExceptionId # maxBound :: LicenseExceptionId #
Enum LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods succ :: LicenseExceptionId -> LicenseExceptionId # pred :: LicenseExceptionId -> LicenseExceptionId # toEnum :: Int -> LicenseExceptionId # fromEnum :: LicenseExceptionId -> Int # enumFrom :: LicenseExceptionId -> [LicenseExceptionId] # enumFromThen :: LicenseExceptionId -> LicenseExceptionId -> [LicenseExceptionId] # enumFromTo :: LicenseExceptionId -> LicenseExceptionId -> [LicenseExceptionId] # enumFromThenTo :: LicenseExceptionId -> LicenseExceptionId -> LicenseExceptionId -> [LicenseExceptionId] #
Generic LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Associated Types
type Rep LicenseExceptionId |
Instance details Defined in Distribution.SPDX.LicenseExceptionId type Rep LicenseExceptionId = D1 ('MetaData "LicenseExceptionId" "Distribution.SPDX.LicenseExceptionId" "Cabal-syntax-3.11.0.0-f9cc" 'False) (((((C1 ('MetaCons "DS389_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Autoconf_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Autoconf_exception_3_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bison_exception_2_2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bootloader_exception" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Classpath_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CLISP_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DigiRule_FOSS_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ECos_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Fawkes_Runtime_exception" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "FLTK_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Font_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Freertos_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GCC_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GCC_exception_3_1" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Gnu_javamail_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GPL_3_0_linking_exception" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GPL_3_0_linking_source_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GPL_CC_1_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "I2p_gpl_java_exception" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "LGPL_3_0_linking_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Libtool_exception" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Linux_syscall_note" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLVM_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LZMA_exception" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Mif_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Nokia_Qt_exception_1_1" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OCaml_LGPL_linking_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "OCCT_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OpenJDK_assembly_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Openvpn_openssl_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PS_or_PDF_font_exception_20170817" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Qt_GPL_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Qt_LGPL_exception_1_1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Qwt_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "SHL_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SHL_2_1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Swift_exception" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "U_boot_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Universal_FOSS_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WxWindows_exception_3_1" 'PrefixI 'False) (U1 :: Type -> Type)))))))
Methods from :: LicenseExceptionId -> Rep LicenseExceptionId x # to :: Rep LicenseExceptionId x -> LicenseExceptionId #
Read LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods readsPrec :: Int -> ReadS LicenseExceptionId # readList :: ReadS [LicenseExceptionId] # readPrec :: ReadPrec LicenseExceptionId # readListPrec :: ReadPrec [LicenseExceptionId] #
Show LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods showsPrec :: Int -> LicenseExceptionId -> ShowS # show :: LicenseExceptionId -> String # showList :: [LicenseExceptionId] -> ShowS #
Eq LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods (==) :: LicenseExceptionId -> LicenseExceptionId -> Bool # (/=) :: LicenseExceptionId -> LicenseExceptionId -> Bool #
Ord LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId Methods compare :: LicenseExceptionId -> LicenseExceptionId -> Ordering # (<) :: LicenseExceptionId -> LicenseExceptionId -> Bool # (<=) :: LicenseExceptionId -> LicenseExceptionId -> Bool # (>) :: LicenseExceptionId -> LicenseExceptionId -> Bool # (>=) :: LicenseExceptionId -> LicenseExceptionId -> Bool # max :: LicenseExceptionId -> LicenseExceptionId -> LicenseExceptionId # min :: LicenseExceptionId -> LicenseExceptionId -> LicenseExceptionId #
type Rep LicenseExceptionId Source # |
Instance details Defined in Distribution.SPDX.LicenseExceptionId type Rep LicenseExceptionId = D1 ('MetaData "LicenseExceptionId" "Distribution.SPDX.LicenseExceptionId" "Cabal-syntax-3.11.0.0-f9cc" 'False) (((((C1 ('MetaCons "DS389_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Autoconf_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Autoconf_exception_3_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bison_exception_2_2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bootloader_exception" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Classpath_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CLISP_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DigiRule_FOSS_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ECos_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Fawkes_Runtime_exception" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "FLTK_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Font_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Freertos_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GCC_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GCC_exception_3_1" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Gnu_javamail_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GPL_3_0_linking_exception" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GPL_3_0_linking_source_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GPL_CC_1_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "I2p_gpl_java_exception" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "LGPL_3_0_linking_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Libtool_exception" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Linux_syscall_note" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LLVM_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LZMA_exception" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Mif_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Nokia_Qt_exception_1_1" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OCaml_LGPL_linking_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "OCCT_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OpenJDK_assembly_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Openvpn_openssl_exception" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PS_or_PDF_font_exception_20170817" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Qt_GPL_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Qt_LGPL_exception_1_1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Qwt_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "SHL_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SHL_2_1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Swift_exception" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "U_boot_exception_2_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Universal_FOSS_exception_1_0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WxWindows_exception_3_1" 'PrefixI 'False) (U1 :: Type -> Type)))))))

licenseExceptionId :: LicenseExceptionId -> String Source #

License SPDX identifier, e.g. `"BSD-3-Clause"`.

licenseExceptionName :: LicenseExceptionId -> String Source #

License name, e.g. `"GNU General Public License v2.0 only"`

mkLicenseExceptionId :: LicenseListVersion -> String -> Maybe LicenseExceptionId Source #

Create a `LicenseExceptionId` from a `String`.

licenseExceptionIdList :: LicenseListVersion -> [LicenseExceptionId] Source #

# License reference

data LicenseRef Source #

A user defined license reference denoted by `LicenseRef-[idstring]` (for a license not on the SPDX License List);

#### Instances

Instances details

Parsec LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods parsec :: CabalParsing m => m LicenseRef Source #
Pretty LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods pretty :: LicenseRef -> Doc Source # prettyVersioned :: CabalSpecVersion -> LicenseRef -> Doc Source #
Structured LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods structure :: Proxy LicenseRef -> Structure Source # structureHash' :: Tagged LicenseRef MD5
Binary LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods put :: LicenseRef -> Put Source # get :: Get LicenseRef Source # putList :: [LicenseRef] -> Put Source #
NFData LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods rnf :: LicenseRef -> () Source #
Data LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LicenseRef -> c LicenseRef # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LicenseRef # toConstr :: LicenseRef -> Constr # dataTypeOf :: LicenseRef -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LicenseRef) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LicenseRef) # gmapT :: (forall b. Data b => b -> b) -> LicenseRef -> LicenseRef # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LicenseRef -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LicenseRef -> r # gmapQ :: (forall d. Data d => d -> u) -> LicenseRef -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> LicenseRef -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> LicenseRef -> m LicenseRef # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseRef -> m LicenseRef # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseRef -> m LicenseRef #
Generic LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Associated Types
type Rep LicenseRef |
Instance details Defined in Distribution.SPDX.LicenseReference type Rep LicenseRef = D1 ('MetaData "LicenseRef" "Distribution.SPDX.LicenseReference" "Cabal-syntax-3.11.0.0-f9cc" 'False) (C1 ('MetaCons "LicenseRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "_lrDocument") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "_lrLicense") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)))
Methods from :: LicenseRef -> Rep LicenseRef x # to :: Rep LicenseRef x -> LicenseRef #
Read LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods readsPrec :: Int -> ReadS LicenseRef # readList :: ReadS [LicenseRef] # readPrec :: ReadPrec LicenseRef # readListPrec :: ReadPrec [LicenseRef] #
Show LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods showsPrec :: Int -> LicenseRef -> ShowS # show :: LicenseRef -> String # showList :: [LicenseRef] -> ShowS #
Eq LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods (==) :: LicenseRef -> LicenseRef -> Bool # (/=) :: LicenseRef -> LicenseRef -> Bool #
Ord LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference Methods compare :: LicenseRef -> LicenseRef -> Ordering # (<) :: LicenseRef -> LicenseRef -> Bool # (<=) :: LicenseRef -> LicenseRef -> Bool # (>) :: LicenseRef -> LicenseRef -> Bool # (>=) :: LicenseRef -> LicenseRef -> Bool # max :: LicenseRef -> LicenseRef -> LicenseRef # min :: LicenseRef -> LicenseRef -> LicenseRef #
type Rep LicenseRef Source # |
Instance details Defined in Distribution.SPDX.LicenseReference type Rep LicenseRef = D1 ('MetaData "LicenseRef" "Distribution.SPDX.LicenseReference" "Cabal-syntax-3.11.0.0-f9cc" 'False) (C1 ('MetaCons "LicenseRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "_lrDocument") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "_lrLicense") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)))

licenseRef :: LicenseRef -> String Source #

License reference.

licenseDocumentRef :: LicenseRef -> Maybe String Source #

Document reference.

mkLicenseRef :: Maybe String -> String -> Maybe LicenseRef Source #

Create `LicenseRef` from optional document ref and name.

mkLicenseRef' :: Maybe String -> String -> LicenseRef Source #

Like `mkLicenseRef` but convert invalid characters into `-`.

# License list version

data LicenseListVersion Source #

SPDX License List version `Cabal` is aware of.

Constructors

LicenseListVersion_3_0 |
LicenseListVersion_3_2 |
LicenseListVersion_3_6 |
LicenseListVersion_3_9 |
LicenseListVersion_3_10 |
LicenseListVersion_3_16 |

#### Instances

Instances details

Bounded LicenseListVersion Source # |
Instance details Defined in Distribution.SPDX.LicenseListVersion Methods minBound :: LicenseListVersion # maxBound :: LicenseListVersion #
Enum LicenseListVersion Source # |
Instance details Defined in Distribution.SPDX.LicenseListVersion Methods succ :: LicenseListVersion -> LicenseListVersion # pred :: LicenseListVersion -> LicenseListVersion # toEnum :: Int -> LicenseListVersion # fromEnum :: LicenseListVersion -> Int # enumFrom :: LicenseListVersion -> [LicenseListVersion] # enumFromThen :: LicenseListVersion -> LicenseListVersion -> [LicenseListVersion] # enumFromTo :: LicenseListVersion -> LicenseListVersion -> [LicenseListVersion] # enumFromThenTo :: LicenseListVersion -> LicenseListVersion -> LicenseListVersion -> [LicenseListVersion] #
Show LicenseListVersion Source # |
Instance details Defined in Distribution.SPDX.LicenseListVersion Methods showsPrec :: Int -> LicenseListVersion -> ShowS # show :: LicenseListVersion -> String # showList :: [LicenseListVersion] -> ShowS #
Eq LicenseListVersion Source # |
Instance details Defined in Distribution.SPDX.LicenseListVersion Methods (==) :: LicenseListVersion -> LicenseListVersion -> Bool # (/=) :: LicenseListVersion -> LicenseListVersion -> Bool #
Ord LicenseListVersion Source # |
Instance details Defined in Distribution.SPDX.LicenseListVersion Methods compare :: LicenseListVersion -> LicenseListVersion -> Ordering # (<) :: LicenseListVersion -> LicenseListVersion -> Bool # (<=) :: LicenseListVersion -> LicenseListVersion -> Bool # (>) :: LicenseListVersion -> LicenseListVersion -> Bool # (>=) :: LicenseListVersion -> LicenseListVersion -> Bool # max :: LicenseListVersion -> LicenseListVersion -> LicenseListVersion # min :: LicenseListVersion -> LicenseListVersion -> LicenseListVersion #

cabalSpecVersionToSPDXListVersion :: CabalSpecVersion -> LicenseListVersion Source #