diff options
Diffstat (limited to 'Main.hs')
-rw-r--r-- | Main.hs | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -10,18 +10,18 @@ import Parser main :: IO () main = do - (source, fname) <- getArgs >>= \case - [] -> (,"<stdin>") <$> getContents - [fname] -> (,fname) <$> readFile fname - _ -> die "Usage: hs-visinter [filename.hs]" + (source, fname) <- getArgs >>= \case + [] -> (,"<stdin>") <$> getContents + [fname] -> (,fname) <$> readFile fname + _ -> die "Usage: hs-visinter [filename.hs]" - prog <- case parse fname source of - This errs -> do - mapM_ (putStrLn . printErrMsg) errs - exitFailure - These errs res -> do - mapM_ (putStrLn . printErrMsg) errs - return res - That res -> return res + prog <- case parse fname source of + This errs -> do + mapM_ (putStrLn . printErrMsg) errs + exitFailure + These errs res -> do + mapM_ (putStrLn . printErrMsg) errs + return res + That res -> return res - print prog + print prog |