diff options
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs index 0088b7c..c3c1d7e 100644 --- a/src/Main.hs +++ b/src/Main.hs | |||
@@ -38,7 +38,8 @@ runCli = do | |||
38 | case input of | 38 | case input of |
39 | Nothing -> liftIO exitSuccess | 39 | Nothing -> liftIO exitSuccess |
40 | Just input' -> do | 40 | Just input' -> do |
41 | case parseCmd input' of | 41 | cmd <- parseCmd input' |
42 | case cmd of | ||
42 | UnknownCommand help -> do | 43 | UnknownCommand help -> do |
43 | lift . outputStrLn $ help | 44 | lift . outputStrLn $ help |
44 | ParseError err -> do | 45 | ParseError err -> do |
@@ -46,5 +47,6 @@ runCli = do | |||
46 | Empty -> return () | 47 | Empty -> return () |
47 | 48 | ||
48 | Quit -> liftIO exitSuccess | 49 | Quit -> liftIO exitSuccess |
50 | |||
49 | _ -> undefined | 51 | _ -> undefined |
50 | runCli | 52 | runCli |