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:
parent
b2b88f24b5
commit
e177ea7eab
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user