| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.SARIF.Log
Description
Provides the top-level structure of SARIF.
Synopsis
- data Log = MkLog {
- logVersion :: Text
- logRuns :: [Run]
- defaultLog :: Log
- decodeSarifFileStrict :: FilePath -> IO (Either String Log)
- encodeSarifAsLBS :: Log -> ByteString
Documentation
Each SARIF file contains one Log value at the top.
Constructors
| MkLog | |
Fields
| |
defaultLog :: Log Source #
Represents a default Log value.
decodeSarifFileStrict :: FilePath -> IO (Either String Log) Source #
decodeSarifFileStrict filepath is a type-specialised version of
eitherDecodeFileStrict for Log.
encodeSarifAsLBS :: Log -> ByteString Source #
encodeSarifAsLBS log encodes a Log value as a lazy ByteString.
This is a type-specialised version of encode.