summaryrefslogtreecommitdiff
path: root/src/Run
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-11-13 19:54:04 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2024-11-13 21:22:45 +0100
commit1a8b4fbabdb1e3426f0da93817f93071b5985f2e (patch)
tree22a439dd447746ca57bff6ccc3021d2d8776b27e /src/Run
parent0b6880a6b4e7366bd0c66a6d44ca1c50e3ca6334 (diff)
Keep track of used variables alongside evaluated expressions
Diffstat (limited to 'src/Run')
-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 1890572..54600f0 100644
--- a/src/Run/Monad.hs
+++ b/src/Run/Monad.hs
@@ -96,7 +96,7 @@ instance MonadEval TestRun where
lookupVar name = maybe (fail $ "variable not in scope: '" ++ unpackVarName name ++ "'") return =<< asks (lookup name . tsVars . snd)
rootNetwork = asks $ tsNetwork . snd
- withVar name value = local (fmap $ \s -> s { tsVars = ( name, SomeVarValue mempty $ const $ const value ) : tsVars s })
+ withVar name value = local (fmap $ \s -> s { tsVars = ( name, SomeVarValue [] mempty $ const $ const value ) : tsVars s })
instance MonadOutput TestRun where
getOutput = asks $ teOutput . fst