@@ -78,7 +78,7 @@ compile' env opts ms = do
7878 let elim = if null entryPoints then regrouped else eliminateDeadCode entryPoints regrouped
7979 let codeGenModules = moduleNameFromString `map` optionsCodeGenModules opts
8080 let modulesToCodeGen = if null codeGenModules then elim else filter (\(Module mn _ _) -> mn `elem` codeGenModules) elim
81− let (js, _) = runSupply nextVar $ concat <$> mapM (\m -> moduleToJs Globals opts m env') modulesToCodeGen
81+ let js = evalSupply nextVar $ concat <$> mapM (\m -> moduleToJs Globals opts m env') modulesToCodeGen
8282 let exts = intercalate "\n" . map (`moduleToPs` env') $ modulesToCodeGen
8383 js' <- generateMain env' opts js
8484 return (prettyPrintJS js', exts, env')
@@ -191,7 +191,7 @@ make outputDir opts ms = do
191191
192192 (desugared, nextVar) <- liftError $ stringifyErrorStack True $ runSupplyT 0 $ zip (map fst marked) <$> desugar (map snd marked)
193193
194− fst <$> runSupplyT nextVar (go initEnvironment desugared)
194+ evalSupplyT nextVar (go initEnvironment desugared)
195195
196196 where
197197 go :: (Functor m, Applicative m, Monad m, MonadMake m) => Environment -> [(Bool, Module)] -> SupplyT m Environment