summaryrefslogtreecommitdiff
path: root/lambda-calcul/haskell/app/Main.hs
diff options
context:
space:
mode:
authorArnaud Bailly <arnaud@pankzsoft.com>2025-10-17 09:52:06 +0200
committerArnaud Bailly <arnaud@pankzsoft.com>2025-10-17 10:14:33 +0200
commitc3a175e808b279eb415bcb5dbcb9db5f34035f98 (patch)
treeab35579f3e69494147117b110bcfa8b08eb911c4 /lambda-calcul/haskell/app/Main.hs
parentc6eaf6f117e0fe6c92a81dab542845d4ae8f64f7 (diff)
downloadlambda-nantes-c3a175e808b279eb415bcb5dbcb9db5f34035f98.tar.gz
feat: add basic application to evaluate "programs"
The main simply reads from its stdin, evaluates its input, and dump the result of the evaluation.
Diffstat (limited to 'lambda-calcul/haskell/app/Main.hs')
-rw-r--r--lambda-calcul/haskell/app/Main.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/lambda-calcul/haskell/app/Main.hs b/lambda-calcul/haskell/app/Main.hs
new file mode 100644
index 0000000..5b48c01
--- /dev/null
+++ b/lambda-calcul/haskell/app/Main.hs
@@ -0,0 +1,6 @@
+import Minilang.IO
+import System.IO (stdin, stdout)
+
+main :: IO ()
+main =
+ runEval stdin stdout