diff --git a/src/Swarm/Game/State.hs b/src/Swarm/Game/State.hs index 60013e936..372a0e61d 100644 --- a/src/Swarm/Game/State.hs +++ b/src/Swarm/Game/State.hs @@ -180,7 +180,7 @@ import Swarm.Game.Terrain (TerrainType (..)) import Swarm.Game.Universe as U import Swarm.Game.World (Coords (..), WorldFun (..), locToCoords, worldFunFromArray) import Swarm.Game.World qualified as W -import Swarm.Game.World.Eval (runTTerm) +import Swarm.Game.World.Eval (runWorld) import Swarm.Game.World.Gen (Seed, findGoodOrigin) import Swarm.Game.World.Typecheck (WorldMap) import Swarm.Language.Capability (constCaps) @@ -1255,7 +1255,7 @@ buildWorld WorldDescription {..} = (robots worldName, first fromEnum . wf) worldArray = listArray ((ulr, ulc), (ulr + rs - 1, ulc + cs - 1)) (concat worldGrid) dslWF, arrayWF :: Seed -> WorldFun TerrainType Entity - dslWF = maybe mempty ((applyWhen offsetOrigin findGoodOrigin .) . runTTerm) worldProg + dslWF = maybe mempty ((applyWhen offsetOrigin findGoodOrigin .) . runWorld) worldProg arrayWF = const (worldFunFromArray worldArray) wf = dslWF <> arrayWF diff --git a/src/Swarm/Game/World/Eval.hs b/src/Swarm/Game/World/Eval.hs index 17c748bb8..e6342f668 100644 --- a/src/Swarm/Game/World/Eval.hs +++ b/src/Swarm/Game/World/Eval.hs @@ -30,8 +30,8 @@ import Swarm.Util (acquireAllWithExt) import System.FilePath (dropExtension, joinPath, splitPath) import Witch (into) -runTTerm :: TTerm '[] (World CellVal) -> Seed -> WorldFun TerrainType Entity -runTTerm t seed = convert . interpBTerm seed . bracket $ t +runWorld :: TTerm '[] (World CellVal) -> Seed -> WorldFun TerrainType Entity +runWorld t seed = convert . interpBTerm seed . bracket $ t -- runCTerm . compile seed . bracket