From cb15649a09ef06cb9cb9c412636591435d587382 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 4 Dec 2022 22:07:13 +0200 Subject: Separate envThis and envImported in Env --- app/Main.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/Main.hs') diff --git a/app/Main.hs b/app/Main.hs index 1ee5bd8..34fe23a 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -57,7 +57,9 @@ main = do } let config = parseArgs initialConfig args - ls = LState { stateConfig = config, stateEnv = builtinEnv, stateDepth = 0 } + ls = LState { stateConfig = config, + stateEnv = emptyEnv { envImported = builtinEnv }, + stateDepth = 0 } if (configShowHelp config) then do putStrLn $ "Usage: " ++ progName ++ " # to open REPL" -- cgit v1.3