Skip to content

Commit c0bb3fc

Browse files
committed
Use GHC's isPointRealSpan
1 parent 5da8d8e commit c0bb3fc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Hint/Comment.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,3 @@ isOneLineRealSpan :: RealSrcSpan -> Bool
131131
isOneLineRealSpan span = line1 == line2 where
132132
line1 = srcLocLine $ realSrcSpanStart span
133133
line2 = srcLocLine $ realSrcSpanEnd span
134-
135-
-- | 'True' if the span is a single point.
136-
-- SEE: https://gitlab.haskell.org/ghc/ghc/-/blob/master/compiler/GHC/Types/SrcLoc.hs#L485-488
137-
isPointRealSpan :: RealSrcSpan -> Bool
138-
isPointRealSpan span = isOneLineRealSpan span && col1 == col2 where
139-
col1 = srcLocCol $ realSrcSpanStart span
140-
col2 = srcLocCol $ realSrcSpanEnd span

0 commit comments

Comments
 (0)