Cabal-syntax-3.10.3.0: A library for working with .cabal files
Safe HaskellNone
LanguageHaskell2010

Distribution.SPDX.LicenseReference

Synopsis

Documentation

data LicenseRef Source #

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

Instances

Instances details
Parsec LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Pretty LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Structured LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Data LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LicenseRef -> c LicenseRef Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LicenseRef Source #

toConstr :: LicenseRef -> Constr Source #

dataTypeOf :: LicenseRef -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LicenseRef) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LicenseRef) Source #

gmapT :: (forall b. Data b => b -> b) -> LicenseRef -> LicenseRef Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LicenseRef -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LicenseRef -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> LicenseRef -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> LicenseRef -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> LicenseRef -> m LicenseRef Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseRef -> m LicenseRef Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseRef -> m LicenseRef Source #

Generic LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Associated Types

type Rep LicenseRef 
Instance details

Defined in Distribution.SPDX.LicenseReference

type Rep LicenseRef = D1 ('MetaData "LicenseRef" "Distribution.SPDX.LicenseReference" "Cabal-syntax-3.10.3.0-9728" '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)))
Read LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Show LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Binary LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

NFData LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Methods

rnf :: LicenseRef -> () Source #

Eq LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

Ord LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

type Rep LicenseRef Source # 
Instance details

Defined in Distribution.SPDX.LicenseReference

type Rep LicenseRef = D1 ('MetaData "LicenseRef" "Distribution.SPDX.LicenseReference" "Cabal-syntax-3.10.3.0-9728" '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 Source #

License 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 -.