summoner-1.3.0: Tool for scaffolding fully configured batteries-included production-level Haskell projects.

Safe HaskellNone
LanguageHaskell2010

Summoner.License

Description

Data types that represent license names and license content and functions to work with them.

Synopsis

Documentation

data LicenseName Source #

Licenses supported by summoner.

Instances
Bounded LicenseName Source # 
Instance details

Defined in Summoner.License

Enum LicenseName Source # 
Instance details

Defined in Summoner.License

Eq LicenseName Source # 
Instance details

Defined in Summoner.License

Ord LicenseName Source # 
Instance details

Defined in Summoner.License

Show LicenseName Source # 
Instance details

Defined in Summoner.License

Generic LicenseName Source # 
Instance details

Defined in Summoner.License

Associated Types

type Rep LicenseName :: Type -> Type #

type Rep LicenseName Source # 
Instance details

Defined in Summoner.License

type Rep LicenseName = D1 (MetaData "LicenseName" "Summoner.License" "summoner-1.3.0-inplace" False) (((C1 (MetaCons "MIT" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "BSD2" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "BSD3" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "GPL2" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GPL3" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "LGPL21" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "LGPL3" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "AGPL3" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "Apache20" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "MPL20" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "None" PrefixI False) (U1 :: Type -> Type)))))

newtype License Source #

Constructors

License 

Fields

Instances
Show License Source # 
Instance details

Defined in Summoner.License

IsString License Source # 
Instance details

Defined in Summoner.License

Methods

fromString :: String -> License #

Generic License Source # 
Instance details

Defined in Summoner.License

Associated Types

type Rep License :: Type -> Type #

Methods

from :: License -> Rep License x #

to :: Rep License x -> License #

FromJSON License Source # 
Instance details

Defined in Summoner.License

Methods

parseJSON :: Value -> Parser License

parseJSONList :: Value -> Parser [License]

type Rep License Source # 
Instance details

Defined in Summoner.License

type Rep License = D1 (MetaData "License" "Summoner.License" "summoner-1.3.0-inplace" True) (C1 (MetaCons "License" PrefixI True) (S1 (MetaSel (Just "unLicense") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

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.

licenseShortDesc :: LicenseName -> Text Source #

Show short information for the LicenseName.

showLicenseWithDesc :: LicenseName -> Text Source #

Show license name along with its short description.