aboutsummaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-02-13 20:13:25 +0100
committerTom Smeding <tom@tomsmeding.com>2024-02-13 20:13:25 +0100
commitd585e22a91d786614e7b96ac71f1b3eb3469f78c (patch)
treecda368fa4f56600ab959d1beb4c0bb85ce1d060a /Main.hs
parentf43838280ce37c8ce67eda2d36f4021439f0a84c (diff)
Reindent
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs26
1 files changed, 13 insertions, 13 deletions
diff --git a/Main.hs b/Main.hs
index 53b2472..c9de0cc 100644
--- a/Main.hs
+++ b/Main.hs
@@ -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