Cabal-3.3.0.0: A framework for packaging Haskell software
Safe HaskellNone
LanguageHaskell2010

Distribution.SPDX.LicenseExpression

Synopsis

Documentation

data LicenseExpression Source #

SPDX License Expression.

idstring              = 1*(ALPHA / DIGIT / "-" / "." )
license id            = <short form license identifier inAppendix I.1>
license exception id  = <short form license exception identifier inAppendix I.2>
license ref           = ["DocumentRef-"1*(idstring)":"]"LicenseRef-"1*(idstring)

simple expression     = license id / license id"+" / license ref

compound expression   = 1*1(simple expression /
                        simple expression "WITH" license exception id /
                        compound expression "AND" compound expression /
                        compound expression "OR" compound expression ) /
                        "(" compound expression ")" )

license expression    = 1*1(simple expression / compound expression)

Instances

Instances details
Eq LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Data LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Methods

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

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

toConstr :: LicenseExpression -> Constr Source #

dataTypeOf :: LicenseExpression -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Ord LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Read LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Show LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Generic LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Associated Types

type Rep LicenseExpression :: Type -> Type Source #

Binary LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

NFData LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Methods

rnf :: LicenseExpression -> () Source #

Structured LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Pretty LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Parsec LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

type Rep LicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

data SimpleLicenseExpression Source #

Simple License Expressions.

Constructors

ELicenseId LicenseId

An SPDX License List Short Form Identifier. For example: GPL-2.0-only

ELicenseIdPlus LicenseId

An SPDX License List Short Form Identifier with a unary"+" operator suffix to represent the current version of the license or any later version. For example: GPL-2.0+

ELicenseRef LicenseRef

A SPDX user defined license reference: For example: LicenseRef-23, LicenseRef-MIT-Style-1, or DocumentRef-spdx-tool-1.2:LicenseRef-MIT-Style-2

Instances

Instances details
Eq SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Data SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Methods

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

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

toConstr :: SimpleLicenseExpression -> Constr Source #

dataTypeOf :: SimpleLicenseExpression -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Ord SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Read SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Show SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Generic SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Associated Types

type Rep SimpleLicenseExpression :: Type -> Type Source #

Binary SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

NFData SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Structured SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Pretty SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

Parsec SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression

type Rep SimpleLicenseExpression # 
Instance details

Defined in Distribution.SPDX.LicenseExpression