| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.SARIF.Location
Description
Provides types used to refer to different sorts of locations, such as files, as well as parts of files.
Synopsis
- newtype Location = MkLocation {}
- newtype ArtifactLocation = MkArtifactLocation {}
- data Region = MkRegion {}
- data PhysicalLocation = MkPhysicalLocation {}
Documentation
Represents locations.
Constructors
| MkLocation | |
Fields
| |
newtype ArtifactLocation Source #
Represents artifact locations such as file paths.
Constructors
| MkArtifactLocation | |
Fields | |
Instances
| FromJSON ArtifactLocation Source # | |
Defined in Data.SARIF.Location Methods parseJSON :: Value -> Parser ArtifactLocation # parseJSONList :: Value -> Parser [ArtifactLocation] # | |
| ToJSON ArtifactLocation Source # | |
Defined in Data.SARIF.Location Methods toJSON :: ArtifactLocation -> Value # toEncoding :: ArtifactLocation -> Encoding # toJSONList :: [ArtifactLocation] -> Value # toEncodingList :: [ArtifactLocation] -> Encoding # | |
| Show ArtifactLocation Source # | |
Defined in Data.SARIF.Location Methods showsPrec :: Int -> ArtifactLocation -> ShowS # show :: ArtifactLocation -> String # showList :: [ArtifactLocation] -> ShowS # | |
| Eq ArtifactLocation Source # | |
Defined in Data.SARIF.Location Methods (==) :: ArtifactLocation -> ArtifactLocation -> Bool # (/=) :: ArtifactLocation -> ArtifactLocation -> Bool # | |
Represents regions of code with a start and an end.
Constructors
| MkRegion | |
Fields
| |
data PhysicalLocation Source #
Represents parts of artifacts, e.g. a Region within a file.
Constructors
| MkPhysicalLocation | |
Instances
| FromJSON PhysicalLocation Source # | |
Defined in Data.SARIF.Location Methods parseJSON :: Value -> Parser PhysicalLocation # parseJSONList :: Value -> Parser [PhysicalLocation] # | |
| ToJSON PhysicalLocation Source # | |
Defined in Data.SARIF.Location Methods toJSON :: PhysicalLocation -> Value # toEncoding :: PhysicalLocation -> Encoding # toJSONList :: [PhysicalLocation] -> Value # toEncodingList :: [PhysicalLocation] -> Encoding # | |
| Show PhysicalLocation Source # | |
Defined in Data.SARIF.Location Methods showsPrec :: Int -> PhysicalLocation -> ShowS # show :: PhysicalLocation -> String # showList :: [PhysicalLocation] -> ShowS # | |
| Eq PhysicalLocation Source # | |
Defined in Data.SARIF.Location Methods (==) :: PhysicalLocation -> PhysicalLocation -> Bool # (/=) :: PhysicalLocation -> PhysicalLocation -> Bool # | |