sarif-0.1: SARIF implementation for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.SARIF.Log

Description

Provides the top-level structure of SARIF.

Synopsis

Documentation

data Log Source #

Each SARIF file contains one Log value at the top.

Constructors

MkLog 

Fields

  • logVersion :: Text

    The version identifier of the SARIF format used by the file.

  • logRuns :: [Run]

    A list of descriptions of runs of static analysis tools.

Instances

Instances details
FromJSON Log Source # 
Instance details

Defined in Data.SARIF.Log

ToJSON Log Source # 
Instance details

Defined in Data.SARIF.Log

Show Log Source # 
Instance details

Defined in Data.SARIF.Log

Methods

showsPrec :: Int -> Log -> ShowS #

show :: Log -> String #

showList :: [Log] -> ShowS #

Eq Log Source # 
Instance details

Defined in Data.SARIF.Log

Methods

(==) :: Log -> Log -> Bool #

(/=) :: Log -> Log -> Bool #

defaultLog :: Log Source #

Represents a default Log value.

encodeSarifAsLBS :: Log -> ByteString Source #

encodeSarifAsLBS log encodes a Log value as a lazy ByteString. This is a type-specialised version of encode.