diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2023-05-06 18:44:45 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-05-06 18:44:45 +0200 |
| commit | c07f047bc90b6052b7d61de8efcbd7cb9d763e46 (patch) | |
| tree | 23875305e5f0bacdf1d61e4f717a007321f51286 /src/Run.hs | |
| parent | c4836c2078d32eee18824c2fed5069bd841256eb (diff) | |
Drop support for introducing node variable by 'spawn' command
Diffstat (limited to 'src/Run.hs')
| -rw-r--r-- | src/Run.hs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -128,9 +128,8 @@ evalSteps = mapM_ $ \case Spawn tvname@(TypedVarName vname@(VarName tname)) target inner -> do case target of - Left nname -> withNode RootNetwork (Left nname) go - Right (Left net) -> withNode net (Right tvname) go - Right (Right node) -> go =<< eval node + Left net -> withNode net (Right tvname) go + Right node -> go =<< eval node where go node = do opts <- asks $ teOptions . fst |