mirror of
https://github.com/github/semantic.git
synced 2025-01-05 14:11:33 +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 Data.Abstract.Value
|
||||||
import Prelude hiding (fail)
|
import Prelude hiding (fail)
|
||||||
|
|
||||||
|
getGlobalEnv :: Evaluator effects value (EnvironmentFor value)
|
||||||
|
getGlobalEnv = Evaluator get
|
||||||
|
|
||||||
|
|
||||||
data Evaluator effects value a
|
data Evaluator effects value a
|
||||||
= Evaluator
|
= Evaluator
|
||||||
{ runEvaluator :: Members '[ Fail
|
{ runEvaluator :: Members '[ Fail
|
||||||
|
Loading…
Reference in New Issue
Block a user