mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Abstract Semi over the term type.
This commit is contained in:
parent
65e218417f
commit
54430ac56d
@ -31,7 +31,7 @@ import Prelude hiding (fail)
|
||||
type ImportGraph = Map.Map Text (Set.Set Text)
|
||||
|
||||
data Value = Value
|
||||
{ valueSemi :: Semi
|
||||
{ valueSemi :: Semi (Term (Core.Ann :+: Core.Core) User)
|
||||
, valueGraph :: ImportGraph
|
||||
}
|
||||
deriving (Eq, Ord, Show)
|
||||
@ -42,8 +42,8 @@ instance Semigroup Value where
|
||||
instance Monoid Value where
|
||||
mempty = Value Abstract mempty
|
||||
|
||||
data Semi
|
||||
= Closure Loc User (Term (Core.Ann :+: Core.Core) User)
|
||||
data Semi term
|
||||
= Closure Loc User term
|
||||
-- FIXME: Bound String values.
|
||||
| String Text
|
||||
| Abstract
|
||||
|
Loading…
Reference in New Issue
Block a user