1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Rename fromGHCSrcLoc to fromSrcLoc.

This commit is contained in:
Rob Rix 2019-10-10 17:40:42 -04:00
parent b2b88f24b5
commit e177ea7eab
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -13,8 +13,8 @@ here = stackLoc callStack
stackLoc :: CallStack -> Maybe (Path.AbsRelFile, Span)
stackLoc cs = case getCallStack cs of
(_, srcLoc):_ -> Just (fromGHCSrcLoc srcLoc)
(_, srcLoc):_ -> Just (fromSrcLoc srcLoc)
_ -> Nothing
fromGHCSrcLoc :: SrcLoc -> (Path.AbsRelFile, Span)
fromGHCSrcLoc SrcLoc{..} = (Path.absRel srcLocFile, Span (Pos srcLocStartLine srcLocStartCol) (Pos srcLocEndLine srcLocEndCol))
fromSrcLoc :: SrcLoc -> (Path.AbsRelFile, Span)
fromSrcLoc SrcLoc{..} = (Path.absRel srcLocFile, Span (Pos srcLocStartLine srcLocStartCol) (Pos srcLocEndLine srcLocEndCol))