Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.
MkLocation | |
|
newtype ArtifactLocation Source #
Represents artifact locations such as file paths.
Instances
FromJSON ArtifactLocation Source # | |
Defined in Data.SARIF.Location parseJSON :: Value -> Parser ArtifactLocation # parseJSONList :: Value -> Parser [ArtifactLocation] # | |
ToJSON ArtifactLocation Source # | |
Defined in Data.SARIF.Location toJSON :: ArtifactLocation -> Value # toEncoding :: ArtifactLocation -> Encoding # toJSONList :: [ArtifactLocation] -> Value # toEncodingList :: [ArtifactLocation] -> Encoding # | |
Show ArtifactLocation Source # | |
Defined in Data.SARIF.Location showsPrec :: Int -> ArtifactLocation -> ShowS # show :: ArtifactLocation -> String # showList :: [ArtifactLocation] -> ShowS # | |
Eq ArtifactLocation Source # | |
Defined in Data.SARIF.Location (==) :: ArtifactLocation -> ArtifactLocation -> Bool # (/=) :: ArtifactLocation -> ArtifactLocation -> Bool # |
Represents regions of code with a start and an end.
MkRegion | |
|
data PhysicalLocation Source #
Represents parts of artifacts, e.g. a Region
within a file.
Instances
FromJSON PhysicalLocation Source # | |
Defined in Data.SARIF.Location parseJSON :: Value -> Parser PhysicalLocation # parseJSONList :: Value -> Parser [PhysicalLocation] # | |
ToJSON PhysicalLocation Source # | |
Defined in Data.SARIF.Location toJSON :: PhysicalLocation -> Value # toEncoding :: PhysicalLocation -> Encoding # toJSONList :: [PhysicalLocation] -> Value # toEncodingList :: [PhysicalLocation] -> Encoding # | |
Show PhysicalLocation Source # | |
Defined in Data.SARIF.Location showsPrec :: Int -> PhysicalLocation -> ShowS # show :: PhysicalLocation -> String # showList :: [PhysicalLocation] -> ShowS # | |
Eq PhysicalLocation Source # | |
Defined in Data.SARIF.Location (==) :: PhysicalLocation -> PhysicalLocation -> Bool # (/=) :: PhysicalLocation -> PhysicalLocation -> Bool # |