mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Define a getter for the global environment.
This commit is contained in:
parent
772fd97b38
commit
37912b315a
@ -11,6 +11,10 @@ import Control.Monad.Effect.State
|
||||
import Data.Abstract.Value
|
||||
import Prelude hiding (fail)
|
||||
|
||||
getGlobalEnv :: Evaluator effects value (EnvironmentFor value)
|
||||
getGlobalEnv = Evaluator get
|
||||
|
||||
|
||||
data Evaluator effects value a
|
||||
= Evaluator
|
||||
{ runEvaluator :: Members '[ Fail
|
||||
|
Loading…
Reference in New Issue
Block a user