The elm.json for packages always has a "license" field. That field
must contain an OSI approved license in the SPDX format.
This module helps verify that licenses are acceptable.
Easy access to a license commonly used in the Elm ecosystem.
name = BSD 3-clause "New" or "Revised" Licensespdx = BSD-3-ClauseExtract the common name of a License, along with its standardized
spdx abbreviation.
toDetails bsd3
-- { name = "BSD 3-clause \"New\" or \"Revised\" License"
-- , spdx = "BSD-3-Clause"
-- }OSI approved licenses in SPDX format.
Convert a License to its SPDX abbreviation:
toString bsd3 == "BSD-3-Clause"Convert an arbitrary String into a License:
fromString "BSD-3-Clause" == Just bsd3
fromString "BSD3" == NothingNotice that this function only succeds when given an OSI approved license in its SPDX abbreviation. Go here for a full list of such licenses.
An OSI approved license in the SPDX format. It is impossible to construct an invalid
Licensevalue.