Skip to content

Commit 4c45c87

Browse files
Spans.AtPoint: import lengthFS from Compat
1 parent c78d7a1 commit 4c45c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghcide/src/Development/IDE/Spans/AtPoint.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ documentHighlight hf rf pos = pure highlights
186186
else HkRead
187187

188188
isBadSpan :: Name -> RealSrcSpan -> Bool
189-
isBadSpan n sp = srcSpanStartLine sp /= srcSpanEndLine sp || (srcSpanEndCol sp - srcSpanStartCol sp > lengthFS (occNameFS $ nameOccName n))
189+
isBadSpan n sp = srcSpanStartLine sp /= srcSpanEndLine sp || (srcSpanEndCol sp - srcSpanStartCol sp > Util.lengthFS (occNameFS $ nameOccName n))
190190

191191
gotoTypeDefinition
192192
:: MonadIO m

0 commit comments

Comments
 (0)