diff options
Diffstat (limited to 'src/Run')
-rw-r--r-- | src/Run/Monad.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Run/Monad.hs b/src/Run/Monad.hs index 2882197..f605dfb 100644 --- a/src/Run/Monad.hs +++ b/src/Run/Monad.hs @@ -91,7 +91,7 @@ instance MonadError Failed TestRun where catchError (TestRun act) handler = TestRun $ catchError act $ fromTestRun . handler instance MonadEval TestRun where - lookupVar name = maybe (fail $ "variable not in scope: '" ++ unpackVarName name ++ "'") return =<< asks (lookup name . tsVars . snd) + askDictionary = asks (tsVars . snd) withVar name value = local (fmap $ \s -> s { tsVars = ( name, someConstValue value ) : tsVars s }) instance MonadOutput TestRun where |