1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00

MonadEvaluator is a subclass of Monad.

This commit is contained in:
Rob Rix 2018-03-01 11:00:21 -05:00
parent 58b7c88b33
commit 590374884b

View File

@ -12,7 +12,7 @@ import Data.Abstract.Linker
import Data.Abstract.Value
import Prelude hiding (fail)
class MonadEvaluator term value m | m -> term, m -> value where
class Monad m => MonadEvaluator term value m | m -> term, m -> value where
getGlobalEnv :: m (EnvironmentFor value)
modifyGlobalEnv :: (EnvironmentFor value -> EnvironmentFor value) -> m ()