Cabal-2.2.0.1: A framework for packaging Haskell software

Safe HaskellNone
LanguageHaskell2010

Distribution.SPDX.LicenseReference

Synopsis

Documentation

data LicenseRef #

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

Instances
Eq LicenseRef # 
Instance details
Data LicenseRef # 
Instance details

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 :: (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 #

Ord LicenseRef # 
Instance details
Read LicenseRef # 
Instance details
Show LicenseRef # 
Instance details
Generic LicenseRef # 
Instance details

Associated Types

type Rep LicenseRef :: * -> * #

Binary LicenseRef # 
Instance details
NFData LicenseRef # 
Instance details

Methods

rnf :: LicenseRef -> () #

Pretty LicenseRef # 
Instance details

Methods

pretty :: LicenseRef -> Doc #

Parsec LicenseRef # 
Instance details

Methods

parsec :: CabalParsing m => m LicenseRef #

type Rep LicenseRef # 
Instance details
type Rep LicenseRef = D1 (MetaData "LicenseRef" "Distribution.SPDX.LicenseReference" "Cabal-2.2.0.1-JS0vobxWxH7sbYKd0omMO" 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 #

License reference.

licenseDocumentRef :: LicenseRef -> Maybe String #

Document reference.

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

Create LicenseRef from optional document ref and name.

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

Like mkLicenseRef but convert invalid characters into -.