aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Eval.hs
diff options
context:
space:
mode:
authorMarvin Borner2022-07-17 16:52:29 +0200
committerMarvin Borner2022-07-17 16:52:29 +0200
commit313e883f5e2146a2005ae0ed6a36af835cbbc961 (patch)
tree6e3e7f5c2445305d32b41a54180c500d456b18a5 /src/Eval.hs
parent15c5e04c598a19153404a1ac184ed36dd4b30160 (diff)
Features
very descriptive
Diffstat (limited to 'src/Eval.hs')
-rw-r--r--src/Eval.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Eval.hs b/src/Eval.hs
index 1c33fa2..77e5990 100644
--- a/src/Eval.hs
+++ b/src/Eval.hs
@@ -93,7 +93,7 @@ eval (line : ls) state@(EnvState env) isRepl =
else eval ls (EnvState env') isRepl
Import path -> do
lib <- getDataFileName path -- TODO: Use actual lib directory
- exists <- pure False -- doesFileExist lib
+ exists <- doesFileExist lib
loadFile $ if exists then lib else path
Evaluate exp ->
let (res, env') = evalExp exp `runState` env