packages feed

dhscanner-ast 1.0.9 → 1.0.10

raw patch · 2 files changed

+7/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Location: instance GHC.Read.Read Location.Location

Files

dhscanner-ast.cabal view
@@ -22,7 +22,7 @@     and models both of them as plain sequential code blocks. Every file has exactly one ast that represents it.
     Non Haskell parogrammers note: The ast is /immutable/ (like everything else in Haskell ...)
 
-version:            1.0.9
+version:            1.0.10
 license:            GPL-3.0-only
 license-file:       LICENSE
 author:             OrenGitHub
src/Location.hs view
@@ -33,7 +33,11 @@ import Data.Aeson
 import GHC.Generics
 
--- | Lines and columns are 1-based, like in most IDEs.
+-- |
+-- Lines and columns are 1-based, for compatability with
+-- [Sarif](https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html#_Toc141790937).
+--
+-- > The line number of the first line in a text artifact SHALL be 1.
 data Location =
      Location
      {
@@ -43,4 +47,4 @@          colStart  :: Word,
          colEnd    :: Word
      }
-     deriving ( Show, Eq, Generic, ToJSON, FromJSON, Ord )
+     deriving ( Show, Read, Eq, Generic, ToJSON, FromJSON, Ord )