aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 8990efb..89e27d7 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -102,6 +102,7 @@ runInGhci ghci pset message = do
Ignored -> return (ghci', Nothing)
Return "" -> return (ghci', Just (T.pack "<no output>"))
Return s -> return (ghci', Just (T.pack s))
+ Exited -> return (ghci', Just (T.pack "<bye>"))
data ReqKind = Reply | Paste
deriving (Show)
@@ -141,6 +142,7 @@ mainGHCI = do
Return output -> putStrLn $ "output = <" ++ output ++ ">"
Ignored -> putStrLn "<ignored>"
Error err -> putStrLn err
+ Exited -> putStrLn $ "<exited>"
loop ghci'
makeGhci >>= loop