1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 04:10:29 +03:00
This commit is contained in:
Rick Winfrey 2019-01-15 17:22:15 -08:00
parent 89ad50eb9a
commit 0fc01f2149

View File

@ -66,6 +66,7 @@ declare :: ( Carrier sig m
)
=> Declaration
-> Relation
-> AccessControl
-> Span
-> Maybe address
-> Evaluator term address value m ()
@ -167,8 +168,8 @@ lookupScope :: ( Member (Resumable (BaseError (ScopeError address))) sig
, Carrier sig m
, Ord address
)
=> address
-> Evaluator term address value m (Scope address)
=> address
-> Evaluator term address value m (Scope address)
lookupScope address = maybeM (throwScopeError LookupScopeError) . ScopeGraph.lookupScope address =<< get
declarationsByRelation :: ( Member (State (ScopeGraph address)) sig