hsec-tools-0.1.0.0: Tools for working with the Haskell security advisory database
Safe HaskellSafe-Inferred
LanguageHaskell2010

Security.Advisories.Parse

Synopsis

Documentation

parseAdvisory Source #

Arguments

:: AttributeOverridePolicy 
-> OutOfBandAttributes 
-> Text

input (CommonMark with TOML header)

-> Either ParseAdvisoryError Advisory 

The main parsing function. OutOfBandAttributes are handled according to the AttributeOverridePolicy.

data OutOfBandAttributes Source #

A source of attributes supplied out of band from the advisory content. Values provided out of band are treated according to the AttributeOverridePolicy.

The convenient way to construct a value of this type is to start with emptyOutOfBandAttributes, then use the record accessors to set particular fields.

data ParseAdvisoryError Source #

Instances

Instances details
Generic ParseAdvisoryError Source # 
Instance details

Defined in Security.Advisories.Parse

Associated Types

type Rep ParseAdvisoryError :: Type -> Type #

Show ParseAdvisoryError Source # 
Instance details

Defined in Security.Advisories.Parse

Eq ParseAdvisoryError Source # 
Instance details

Defined in Security.Advisories.Parse

type Rep ParseAdvisoryError Source # 
Instance details

Defined in Security.Advisories.Parse

Orphan instances

FromValue Version Source # 
Instance details

FromValue VersionRange Source # 
Instance details

FromValue CVSS Source # 
Instance details

FromValue Affected Source # 
Instance details

FromValue AffectedVersionRange Source # 
Instance details

FromValue Architecture Source # 
Instance details

FromValue CAPEC Source # 
Instance details

FromValue CWE Source # 
Instance details

FromValue Keyword Source # 
Instance details

FromValue OS Source # 
Instance details

Methods

fromValue :: Value' l -> Matcher l OS #

listFromValue :: Value' l -> Matcher l [OS] #

FromValue HsecId Source # 
Instance details

FromValue Reference Source # 
Instance details

FromValue ReferenceType Source # 
Instance details

ToTable Affected Source # 
Instance details

Methods

toTable :: Affected -> Table #

ToTable AffectedVersionRange Source # 
Instance details

ToTable Reference Source # 
Instance details

Methods

toTable :: Reference -> Table #

ToValue Version Source # 
Instance details

ToValue VersionRange Source # 
Instance details

ToValue CVSS Source # 
Instance details

Methods

toValue :: CVSS -> Value #

toValueList :: [CVSS] -> Value #

ToValue Affected Source # 
Instance details

ToValue AffectedVersionRange Source # 
Instance details

ToValue Architecture Source # 
Instance details

ToValue CAPEC Source # 
Instance details

Methods

toValue :: CAPEC -> Value #

toValueList :: [CAPEC] -> Value #

ToValue CWE Source # 
Instance details

Methods

toValue :: CWE -> Value #

toValueList :: [CWE] -> Value #

ToValue Keyword Source # 
Instance details

ToValue OS Source # 
Instance details

Methods

toValue :: OS -> Value #

toValueList :: [OS] -> Value #

ToValue HsecId Source # 
Instance details

ToValue Reference Source # 
Instance details