mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
Emacs misfire.
This commit is contained in:
parent
f722cb0897
commit
27829d1131
@ -20,7 +20,7 @@ data File a = File
|
||||
, fileBody :: !a
|
||||
}
|
||||
deriving (Eq, Foldable, Functor, Ord, Show, Traversable)
|
||||
q
|
||||
|
||||
fromBody :: HasCallStack => a -> File a
|
||||
fromBody body = File (Path.absRel (srcLocFile srcLoc)) (spanFromSrcLoc srcLoc) body where
|
||||
srcLoc = snd (fromJust (listToMaybe (getCallStack callStack)))
|
||||
|
Loading…
Reference in New Issue
Block a user