summaryrefslogtreecommitdiff
path: root/src/Run/Monad.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Run/Monad.hs')
-rw-r--r--src/Run/Monad.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Run/Monad.hs b/src/Run/Monad.hs
index f605dfb..3739e2e 100644
--- a/src/Run/Monad.hs
+++ b/src/Run/Monad.hs
@@ -92,7 +92,7 @@ instance MonadError Failed TestRun where
instance MonadEval TestRun where
askDictionary = asks (tsVars . snd)
- withVar name value = local (fmap $ \s -> s { tsVars = ( name, someConstValue value ) : tsVars s })
+ withDictionary f = local (fmap $ \s -> s { tsVars = f (tsVars s) })
instance MonadOutput TestRun where
getOutput = asks $ teOutput . fst