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

Security.Advisories.Queries

Synopsis

Documentation

listVersionAffectedBy :: MonadIO m => FilePath -> Text -> Version -> m (Validation [ParseAdvisoryError] [Advisory]) Source #

List the advisories matching a package name and a version

listVersionRangeAffectedBy :: MonadIO m => FilePath -> Text -> VersionRange -> m (Validation [ParseAdvisoryError] [Advisory]) Source #

List the advisories matching a package name and a version range

isVersionAffectedBy :: Text -> Version -> Advisory -> Bool Source #

Check whether a package and a version is concerned by an advisory

isVersionRangeAffectedBy :: Text -> VersionRange -> Advisory -> Bool Source #

Check whether a package and a version range is concerned by an advisory