mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Generalize Semi over the name type.
This commit is contained in:
parent
462086e473
commit
adeec84cd8
@ -30,7 +30,7 @@ import qualified System.Path as Path
|
||||
type ImportGraph = Map.Map Text (Set.Set Text)
|
||||
|
||||
data Value term = Value
|
||||
{ valueSemi :: Semi term
|
||||
{ valueSemi :: Semi term Name
|
||||
, valueGraph :: ImportGraph
|
||||
}
|
||||
deriving (Eq, Ord, Show)
|
||||
@ -41,8 +41,8 @@ instance Semigroup (Value term) where
|
||||
instance Monoid (Value term) where
|
||||
mempty = Value Abstract mempty
|
||||
|
||||
data Semi term
|
||||
= Closure Path.AbsRelFile Span Name term
|
||||
data Semi term name
|
||||
= Closure Path.AbsRelFile Span name term
|
||||
-- FIXME: Bound String values.
|
||||
| String Text
|
||||
| Abstract
|
||||
|
Loading…
Reference in New Issue
Block a user