1
1
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:
Rob Rix 2018-02-28 10:41:51 -05:00
parent 772fd97b38
commit 37912b315a

View File

@ -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