diff options
Diffstat (limited to 'lambda-calcul/haskell/app')
| -rw-r--r-- | lambda-calcul/haskell/app/Main.hs | 5 |
1 files changed, 2 insertions, 3 deletions
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 |
