| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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)
Constructors
| ELicense !SimpleLicenseExpression !(Maybe LicenseExceptionId) | |
| EAnd !LicenseExpression !LicenseExpression | |
| EOr !LicenseExpression !LicenseExpression |
Instances
data SimpleLicenseExpression Source #
Simple License Expressions.
Constructors
| ELicenseId LicenseId | An SPDX License List Short Form Identifier. For example: |
| 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: |
| ELicenseRef LicenseRef | A SPDX user defined license reference: For example: |
Instances
| Parsec SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression Methods parsec :: CabalParsing m => m SimpleLicenseExpression Source # | |||||
| Pretty SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression Methods pretty :: SimpleLicenseExpression -> Doc Source # prettyVersioned :: CabalSpecVersion -> SimpleLicenseExpression -> Doc Source # | |||||
| Structured SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression Methods structure :: Proxy SimpleLicenseExpression -> Structure Source # structureHash' :: Tagged SimpleLicenseExpression MD5 | |||||
| Data SimpleLicenseExpression Source # | |||||
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 # | |||||
| Generic SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression Associated Types
Methods from :: SimpleLicenseExpression -> Rep SimpleLicenseExpression x Source # to :: Rep SimpleLicenseExpression x -> SimpleLicenseExpression Source # | |||||
| Read SimpleLicenseExpression Source # | |||||
| Show SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression | |||||
| Binary SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression Methods put :: SimpleLicenseExpression -> Put Source # get :: Get SimpleLicenseExpression Source # putList :: [SimpleLicenseExpression] -> Put Source # | |||||
| NFData SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression Methods rnf :: SimpleLicenseExpression -> () Source # | |||||
| Eq SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression Methods (==) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # (/=) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # | |||||
| Ord SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression Methods compare :: SimpleLicenseExpression -> SimpleLicenseExpression -> Ordering # (<) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # (<=) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # (>) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # (>=) :: SimpleLicenseExpression -> SimpleLicenseExpression -> Bool # max :: SimpleLicenseExpression -> SimpleLicenseExpression -> SimpleLicenseExpression # min :: SimpleLicenseExpression -> SimpleLicenseExpression -> SimpleLicenseExpression # | |||||
| type Rep SimpleLicenseExpression Source # | |||||
Defined in Distribution.SPDX.LicenseExpression type Rep SimpleLicenseExpression = D1 ('MetaData "SimpleLicenseExpression" "Distribution.SPDX.LicenseExpression" "Cabal-syntax-3.10.3.0-905e" 'False) (C1 ('MetaCons "ELicenseId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseId)) :+: (C1 ('MetaCons "ELicenseIdPlus" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseId)) :+: C1 ('MetaCons "ELicenseRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LicenseRef)))) | |||||