summaryrefslogtreecommitdiff
path: root/src/GF/Command/Interpreter.hs
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-06-26 21:01:51 +0000
committeraarne <aarne@cs.chalmers.se>2008-06-26 21:01:51 +0000
commit33eb6d899fef48f2d38a92bc0fab66ff585be553 (patch)
tree2e802e73a69f749fc03e45bb1411fdf03eb2ba27 /src/GF/Command/Interpreter.hs
parentba639910078845c37641ccb2315095b4438cf0c8 (diff)
moved interruption to GFI level to capture all commands
Diffstat (limited to 'src/GF/Command/Interpreter.hs')
-rw-r--r--src/GF/Command/Interpreter.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/GF/Command/Interpreter.hs b/src/GF/Command/Interpreter.hs
index 2762875ec..db4192001 100644
--- a/src/GF/Command/Interpreter.hs
+++ b/src/GF/Command/Interpreter.hs
@@ -38,10 +38,13 @@ interpretCommandLine :: (String -> String) -> CommandEnv -> String -> IO ()
interpretCommandLine enc env line =
case readCommandLine line of
Just [] -> return ()
+ Just pipes -> mapM_ (interpretPipe enc env) pipes
+{-
Just pipes -> do res <- runInterruptibly (mapM_ (interpretPipe enc env) pipes)
case res of
Left ex -> putStrLnFlush $ enc (show ex)
Right x -> return x
+-}
Nothing -> putStrLnFlush "command not parsed"
interpretPipe enc env cs = do