From 99e2ce71faa82e7b99574895e0fe24183ba9f6c3 Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Wed, 5 Nov 2025 12:02:23 +0100 Subject: can parse whole programs and load them --- lambda-calcul/haskell/app/Main.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lambda-calcul/haskell/app/Main.hs') diff --git a/lambda-calcul/haskell/app/Main.hs b/lambda-calcul/haskell/app/Main.hs index 769d2f0..6ba9321 100644 --- a/lambda-calcul/haskell/app/Main.hs +++ b/lambda-calcul/haskell/app/Main.hs @@ -1,5 +1,4 @@ -import Minilang.IO (runEval) -import Minilang.REPL (withTerminal) +import Minilang.REPL (withIO, withTerminal) import Minilang.Server (startServer, waitServer) import Options.Applicative import System.IO (stdin, stdout) @@ -58,5 +57,5 @@ main = do hasTty <- queryTerminal stdInput if hasTty then withTerminal - else runEval stdin stdout + else withIO stdin stdout Server -> startServer serverPort >>= waitServer -- cgit v1.3.1