Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data types that represent license names and license content and functions to work with them.
Synopsis
- data LicenseName
- newtype License = License {}
- cabalLicense :: LicenseName -> Text
- customizeLicense :: LicenseName -> License -> Text -> Text -> License
- githubLicenseQueryNames :: LicenseName -> Text
- parseLicenseName :: Text -> Maybe LicenseName
- fetchLicense :: LicenseName -> IO License
- licenseShortDesc :: LicenseName -> Text
- showLicenseWithDesc :: LicenseName -> Text
Documentation
data LicenseName Source #
Licenses supported by summoner
.
Instances
cabalLicense :: LicenseName -> Text Source #
As it will be shown in the cabal
file.
customizeLicense :: LicenseName -> License -> Text -> Text -> License Source #
Replaces name/year placeholders with the actual data.
githubLicenseQueryNames :: LicenseName -> Text Source #
Used for downloading the license text form Github
.
parseLicenseName :: Text -> Maybe LicenseName Source #
fetchLicense :: LicenseName -> IO License Source #
licenseShortDesc :: LicenseName -> Text Source #
Show short information for the LicenseName
.
showLicenseWithDesc :: LicenseName -> Text Source #
Show license name along with its short description.