mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
🔥 Loc.
This commit is contained in:
parent
20c6d12b03
commit
8880278961
@ -1,7 +1,6 @@
|
||||
{-# LANGUAGE RecordWildCards #-}
|
||||
module Data.Loc
|
||||
( Loc(..)
|
||||
, Path(..)
|
||||
( Path(..)
|
||||
, here
|
||||
, stackLoc
|
||||
) where
|
||||
@ -13,12 +12,6 @@ import Source.Span
|
||||
newtype Path = Path { getPath :: Text }
|
||||
deriving (Eq, Ord, Show)
|
||||
|
||||
data Loc = Loc
|
||||
{ locPath :: !Path
|
||||
, locSpan :: {-# UNPACK #-} !Span
|
||||
}
|
||||
deriving (Eq, Ord, Show)
|
||||
|
||||
|
||||
here :: HasCallStack => Maybe (Path, Span)
|
||||
here = stackLoc callStack
|
||||
|
Loading…
Reference in New Issue
Block a user