File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed
Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ executable engine
1313 main-is :
1414 Main.hs
1515 build-depends :
16- base >= 4.7 && < 4.8
16+ base >= 4.7 && < 5
1717 , bytestring
1818 , Glob
1919 hs-source-dirs : src
Original file line number Diff line number Diff line change @@ -8,23 +8,20 @@ data Category = BugRisk
88 | Security
99 | Style
1010
11+ data BeginEnd = BeginEnd {
12+ _begin :: Int
13+ , _end :: Int
14+ }
15+
1116data LineColumn = LineColumn {
1217 _line :: Int
1318 , _column :: Int
1419}
1520
1621data Position = Coord LineColumn | Offset Int
1722
18- data BeginEnd = BeginEnd {
19- _begin :: Int
20- , _end :: Int
21- }
22-
23- data Location = Location {
24- _path :: FilePath
25- , _positions :: Maybe Position
26- , _lines :: Maybe BeginEnd
27- }
23+ data Location = Lines FilePath BeginEnd
24+ | Positions FilePath Position
2825
2926data Issue = Issue {
3027 _type :: String
You can’t perform that action at this time.
0 commit comments