diff options
author | Marvin Borner | 2022-07-17 16:52:29 +0200 |
---|---|---|
committer | Marvin Borner | 2022-07-17 16:52:29 +0200 |
commit | 313e883f5e2146a2005ae0ed6a36af835cbbc961 (patch) | |
tree | 6e3e7f5c2445305d32b41a54180c500d456b18a5 /src/Eval.hs | |
parent | 15c5e04c598a19153404a1ac184ed36dd4b30160 (diff) |
Features
very descriptive
Diffstat (limited to 'src/Eval.hs')
-rw-r--r-- | src/Eval.hs | 2 |
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 |