mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +03:00
< != >
This commit is contained in:
parent
0b45e06c91
commit
eeab8580ff
@ -50,7 +50,7 @@ maybeLastIndex (Range _ end) = Just $ end - 1
|
||||
-- | Test two ranges for intersection.
|
||||
intersectsRange :: Range -> Range -> Bool
|
||||
intersectsRange range1 range2 = isWellFormedAndNonEmpty $ intersectionRange range1 range2
|
||||
where isWellFormedAndNonEmpty range = start range > end range
|
||||
where isWellFormedAndNonEmpty range = start range < end range
|
||||
|
||||
-- Return the (possibly empty, possibly ill-formed) intersection of two ranges.
|
||||
intersectionRange :: Range -> Range -> Range
|
||||
|
Loading…
Reference in New Issue
Block a user