| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Distribution.SPDX
Contents
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
- data LicenseExpression
- data SimpleLicenseExpression
- 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
- | Apache_1_0
- | Apache_1_1
- | Apache_2_0
- | APAFML
- | APL_1_0
- | 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
- | Borceux
- | BSD_1_Clause
- | BSD_2_Clause_FreeBSD
- | BSD_2_Clause_NetBSD
- | BSD_2_Clause_Patent
- | BSD_2_Clause
- | BSD_3_Clause_Attribution
- | BSD_3_Clause_Clear
- | BSD_3_Clause_LBNL
- | BSD_3_Clause_No_Nuclear_License_2014
- | BSD_3_Clause_No_Nuclear_License
- | BSD_3_Clause_No_Nuclear_Warranty
- | BSD_3_Clause
- | BSD_4_Clause_UC
- | BSD_4_Clause
- | BSD_Protection
- | BSD_Source_Code
- | BSL_1_0
- | Bzip2_1_0_5
- | Bzip2_1_0_6
- | Caldera
- | CATOSL_1_1
- | CC_BY_1_0
- | CC_BY_2_0
- | CC_BY_2_5
- | 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
- | 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
- | CC_BY_NC_ND_4_0
- | CC_BY_NC_SA_1_0
- | CC_BY_NC_SA_2_0
- | CC_BY_NC_SA_2_5
- | 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
- | CC_BY_ND_4_0
- | CC_BY_SA_1_0
- | CC_BY_SA_2_0
- | CC_BY_SA_2_5
- | CC_BY_SA_3_0
- | CC_BY_SA_4_0
- | CC0_1_0
- | CDDL_1_0
- | CDDL_1_1
- | CDLA_Permissive_1_0
- | CDLA_Sharing_1_0
- | CECILL_1_0
- | CECILL_1_1
- | CECILL_2_0
- | CECILL_2_1
- | CECILL_B
- | CECILL_C
- | ClArtistic
- | CNRI_Jython
- | CNRI_Python_GPL_Compatible
- | CNRI_Python
- | Condor_1_1
- | CPAL_1_0
- | CPL_1_0
- | CPOL_1_02
- | Crossword
- | CrystalStacker
- | CUA_OPL_1_0
- | Cube
- | Curl
- | D_FSL_1_0
- | Diffmark
- | DOC
- | Dotseqn
- | DSDP
- | Dvipdfm
- | ECL_1_0
- | ECL_2_0
- | EFL_1_0
- | EFL_2_0
- | EGenix
- | Entessa
- | EPL_1_0
- | EPL_2_0
- | ErlPL_1_1
- | EUDatagrid
- | EUPL_1_0
- | EUPL_1_1
- | EUPL_1_2
- | Eurosym
- | Fair
- | Frameworx_1_0
- | FreeImage
- | FSFAP
- | FSFUL
- | FSFULLR
- | FTL
- | GFDL_1_1_only
- | GFDL_1_1_or_later
- | GFDL_1_2_only
- | GFDL_1_2_or_later
- | GFDL_1_3_only
- | GFDL_1_3_or_later
- | Giftware
- | GL2PS
- | Glide
- | Glulxe
- | 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
- | HPND
- | IBM_pibs
- | ICU
- | IJG
- | ImageMagick
- | IMatix
- | Imlib2
- | Info_ZIP
- | Intel_ACPI
- | Intel
- | Interbase_1_0
- | IPA
- | IPL_1_0
- | ISC
- | JasPer_2_0
- | 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
- | Libtiff
- | LiLiQ_P_1_1
- | LiLiQ_R_1_1
- | LiLiQ_Rplus_1_1
- | Linux_OpenIB
- | LPL_1_0
- | LPL_1_02
- | 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
- | MITNFA
- | Motosoto
- | Mpich2
- | MPL_1_0
- | MPL_1_1
- | MPL_2_0_no_copyleft_exception
- | MPL_2_0
- | MS_PL
- | MS_RL
- | MTLL
- | Multics
- | Mup
- | NASA_1_3
- | Naumen
- | NBPL_1_0
- | NCSA
- | Net_SNMP
- | NetCDF
- | Newsletr
- | NGPL
- | NLOD_1_0
- | NLPL
- | Nokia
- | NOSL
- | Noweb
- | NPL_1_0
- | NPL_1_1
- | NPOSL_3_0
- | NRL
- | NTP
- | OCCT_PL
- | OCLC_2_0
- | ODbL_1_0
- | ODC_By_1_0
- | OFL_1_0
- | OFL_1_1
- | 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
- | OSET_PL_2_1
- | OSL_1_0
- | OSL_1_1
- | OSL_2_0
- | OSL_2_1
- | OSL_3_0
- | PDDL_1_0
- | PHP_3_0
- | PHP_3_01
- | Plexus
- | PostgreSQL
- | 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
- | Sendmail
- | SGI_B_1_0
- | SGI_B_1_1
- | SGI_B_2_0
- | SimPL_2_0
- | SISSL_1_2
- | SISSL
- | Sleepycat
- | SMLNJ
- | SMPPL
- | SNIA
- | Spencer_86
- | Spencer_94
- | Spencer_99
- | SPL_1_0
- | SugarCRM_1_1_3
- | SWL
- | TCL
- | TCP_wrappers
- | TMate
- | TORQUE_1_1
- | TOSL
- | TU_Berlin_1_0
- | TU_Berlin_2_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
- | 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
- | I2p_gpl_java_exception
- | Libtool_exception
- | Linux_syscall_note
- | LLVM_exception
- | LZMA_exception
- | Mif_exception
- | Nokia_Qt_exception_1_1
- | 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
- | U_boot_exception_2_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
- cabalSpecVersionToSPDXListVersion :: CabalSpecVersion -> LicenseListVersion
License
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:
- AllRightsReservedand- UnspecifiedLicenseto- NONE. No license specified which legally defaults to All Rights Reserved. The package may not be legally modified or redistributed by anyone but the rightsholder.
- OtherLicensecan be converted to- LicenseRefpointing to the file in the package.
- UnknownLicensei.e. other licenses of the form- name-x.y, should be covered by SPDX license list, otherwise use- LicenseRef.
- PublicDomainisn't covered. Consider using CC0. See https://wiki.spdx.org/view/Legal_Team/Decisions/Dealing_with_Public_Domain_within_SPDX_Files for more information.
Constructors
| NONE | if the package contains no license information whatsoever; or | 
| License LicenseExpression | A valid SPDX License Expression as defined in Appendix IV. | 
Instances
| Eq License Source # | |
| Data License Source # | |
| 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 :: (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 # | |
| Ord License Source # | |
| Defined in Distribution.SPDX.License | |
| Read License Source # | |
| Show License Source # | |
| Generic License Source # | |
| Binary License Source # | |
| NFData License Source # | |
| Defined in Distribution.SPDX.License | |
| Pretty License Source # | |
| Parsec License Source # | 
 
 | 
| Defined in Distribution.SPDX.License Methods parsec :: CabalParsing m => m License Source # | |
| Newtype SpecLicense (Either License License) Source # | |
| Defined in Distribution.Parsec.Newtypes | |
| type Rep License Source # | |
| Defined in Distribution.SPDX.License type Rep License = D1 (MetaData "License" "Distribution.SPDX.License" "Cabal-2.4.1.0-B0ZPupqxKZe72LoceK3cGA" 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
data SimpleLicenseExpression Source #
Simple License Expressions.
Constructors
| ELicenseId LicenseId | An SPDX License List Short Form Identifier. For example:  | 
| ELicenseIdPlus LicenseId | An SPDX License List Short Form Identifier with a unary"+" operator suffix to represent the current version of the license or any later version.  For example:  | 
| ELicenseRef LicenseRef | A SPDX user defined license reference: For example:  | 
Instances
License identifier
SPDX License identifier
Constructors
| 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 | 
 | 
| Apache_1_0 | 
 | 
| Apache_1_1 | 
 | 
| Apache_2_0 | 
 | 
| APAFML | 
 | 
| APL_1_0 | 
 | 
| 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 | 
 | 
| Borceux | 
 | 
| BSD_1_Clause | 
 | 
| BSD_2_Clause_FreeBSD | 
 | 
| BSD_2_Clause_NetBSD | 
 | 
| BSD_2_Clause_Patent | 
 | 
| BSD_2_Clause | 
 | 
| BSD_3_Clause_Attribution | 
 | 
| BSD_3_Clause_Clear | 
 | 
| BSD_3_Clause_LBNL | 
 | 
| BSD_3_Clause_No_Nuclear_License_2014 | 
 | 
| BSD_3_Clause_No_Nuclear_License | 
 | 
| BSD_3_Clause_No_Nuclear_Warranty | 
 | 
| BSD_3_Clause | |
| BSD_4_Clause_UC | 
 | 
| BSD_4_Clause | |
| BSD_Protection | 
 | 
| BSD_Source_Code | 
 | 
| BSL_1_0 | 
 | 
| Bzip2_1_0_5 | 
 | 
| Bzip2_1_0_6 | 
 | 
| Caldera | 
 | 
| CATOSL_1_1 | 
 | 
| CC_BY_1_0 | 
 | 
| CC_BY_2_0 | 
 | 
| CC_BY_2_5 | 
 | 
| 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 | 
 | 
| 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 | 
 | 
| CC_BY_NC_ND_4_0 | 
 | 
| CC_BY_NC_SA_1_0 | 
 | 
| CC_BY_NC_SA_2_0 | 
 | 
| CC_BY_NC_SA_2_5 | 
 | 
| 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 | 
 | 
| CC_BY_ND_4_0 | 
 | 
| CC_BY_SA_1_0 | 
 | 
| CC_BY_SA_2_0 | 
 | 
| CC_BY_SA_2_5 | 
 | 
| CC_BY_SA_3_0 | 
 | 
| CC_BY_SA_4_0 | 
 | 
| CC0_1_0 | 
 | 
| CDDL_1_0 | 
 | 
| CDDL_1_1 | 
 | 
| CDLA_Permissive_1_0 | 
 | 
| CDLA_Sharing_1_0 | 
 | 
| CECILL_1_0 | 
 | 
| CECILL_1_1 | 
 | 
| CECILL_2_0 | 
 | 
| CECILL_2_1 | 
 | 
| CECILL_B | 
 | 
| CECILL_C | 
 | 
| ClArtistic | 
 | 
| CNRI_Jython | 
 | 
| CNRI_Python_GPL_Compatible | 
 | 
| CNRI_Python | 
 | 
| Condor_1_1 | 
 | 
| CPAL_1_0 | 
 | 
| CPL_1_0 | 
 | 
| CPOL_1_02 | 
 | 
| Crossword | 
 | 
| CrystalStacker | 
 | 
| CUA_OPL_1_0 | 
 | 
| Cube | 
 | 
| Curl | 
 | 
| D_FSL_1_0 | 
 | 
| Diffmark | 
 | 
| DOC | 
 | 
| Dotseqn | 
 | 
| DSDP | 
 | 
| Dvipdfm | 
 | 
| ECL_1_0 | 
 | 
| ECL_2_0 | 
 | 
| EFL_1_0 | 
 | 
| EFL_2_0 | 
 | 
| EGenix | 
 | 
| Entessa | 
 | 
| EPL_1_0 | 
 | 
| EPL_2_0 | 
 | 
| ErlPL_1_1 | 
 | 
| EUDatagrid | 
 | 
| EUPL_1_0 | 
 | 
| EUPL_1_1 | 
 | 
| EUPL_1_2 | 
 | 
| Eurosym | 
 | 
| Fair | 
 | 
| Frameworx_1_0 | 
 | 
| FreeImage | 
 | 
| FSFAP | 
 | 
| FSFUL | 
 | 
| FSFULLR | 
 | 
| FTL | 
 | 
| GFDL_1_1_only | 
 | 
| GFDL_1_1_or_later | 
 | 
| GFDL_1_2_only | 
 | 
| GFDL_1_2_or_later | 
 | 
| GFDL_1_3_only | 
 | 
| GFDL_1_3_or_later | 
 | 
| Giftware | 
 | 
| GL2PS | 
 | 
| Glide | 
 | 
| Glulxe | 
 | 
| 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 | 
 | 
| HPND | 
 | 
| IBM_pibs | 
 | 
| ICU | 
 | 
| IJG | 
 | 
| ImageMagick | 
 | 
| IMatix | 
 | 
| Imlib2 | 
 | 
| Info_ZIP | 
 | 
| Intel_ACPI | 
 | 
| Intel | 
 | 
| Interbase_1_0 | 
 | 
| IPA | 
 | 
| IPL_1_0 | 
 | 
| ISC | 
 | 
| JasPer_2_0 | 
 | 
| 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 | 
 | 
| Libtiff | 
 | 
| LiLiQ_P_1_1 | 
 | 
| LiLiQ_R_1_1 | 
 | 
| LiLiQ_Rplus_1_1 | 
 | 
| Linux_OpenIB | 
 | 
| LPL_1_0 | 
 | 
| LPL_1_02 | 
 | 
| 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 | 
 | 
| MITNFA | 
 | 
| Motosoto | 
 | 
| Mpich2 | 
 | 
| MPL_1_0 | 
 | 
| MPL_1_1 | 
 | 
| MPL_2_0_no_copyleft_exception | 
 | 
| MPL_2_0 | 
 | 
| MS_PL | 
 | 
| MS_RL | 
 | 
| MTLL | 
 | 
| Multics | 
 | 
| Mup | 
 | 
| NASA_1_3 | 
 | 
| Naumen | 
 | 
| NBPL_1_0 | 
 | 
| NCSA | 
 | 
| Net_SNMP | 
 | 
| NetCDF | 
 | 
| Newsletr | 
 | 
| NGPL | 
 | 
| NLOD_1_0 | 
 | 
| NLPL | 
 | 
| Nokia | 
 | 
| NOSL | 
 | 
| Noweb | 
 | 
| NPL_1_0 | 
 | 
| NPL_1_1 | 
 | 
| NPOSL_3_0 | 
 | 
| NRL | 
 | 
| NTP | 
 | 
| OCCT_PL | 
 | 
| OCLC_2_0 | 
 | 
| ODbL_1_0 | 
 | 
| ODC_By_1_0 | 
 | 
| OFL_1_0 | 
 | 
| OFL_1_1 | 
 | 
| 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 | 
 | 
| OSET_PL_2_1 | 
 | 
| OSL_1_0 | 
 | 
| OSL_1_1 | 
 | 
| OSL_2_0 | 
 | 
| OSL_2_1 | 
 | 
| OSL_3_0 | 
 | 
| PDDL_1_0 | 
 | 
| PHP_3_0 | 
 | 
| PHP_3_01 | 
 | 
| Plexus | 
 | 
| PostgreSQL | 
 | 
| 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 | 
 | 
| Sendmail | 
 | 
| SGI_B_1_0 | 
 | 
| SGI_B_1_1 | 
 | 
| SGI_B_2_0 | 
 | 
| SimPL_2_0 | 
 | 
| SISSL_1_2 | 
 | 
| SISSL | 
 | 
| Sleepycat | 
 | 
| SMLNJ | 
 | 
| SMPPL | 
 | 
| SNIA | 
 | 
| Spencer_86 | 
 | 
| Spencer_94 | 
 | 
| Spencer_99 | 
 | 
| SPL_1_0 | 
 | 
| SugarCRM_1_1_3 | 
 | 
| SWL | 
 | 
| TCL | 
 | 
| TCP_wrappers | 
 | 
| TMate | 
 | 
| TORQUE_1_1 | 
 | 
| TOSL | 
 | 
| TU_Berlin_1_0 | 
 | 
| TU_Berlin_2_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 | 
 | 
| 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 | 
 | 
Instances
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).
mkLicenseId :: LicenseListVersion -> String -> Maybe LicenseId Source #
licenseIdList :: LicenseListVersion -> [LicenseId] Source #
License exception
data LicenseExceptionId Source #
SPDX License identifier
Constructors
| 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 | 
 | 
| I2p_gpl_java_exception | 
 | 
| Libtool_exception | 
 | 
| Linux_syscall_note | 
 | 
| LLVM_exception | 
 | 
| LZMA_exception | 
 | 
| Mif_exception | 
 | 
| Nokia_Qt_exception_1_1 | 
 | 
| 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 | 
 | 
| U_boot_exception_2_0 | 
 | 
| WxWindows_exception_3_1 | 
 | 
Instances
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.
License reference
data LicenseRef Source #
A user defined license reference denoted by LicenseRef-[idstring] (for a license not on the SPDX License List);
Instances
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 |