diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-02-17 09:22:49 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-02-17 09:22:49 +0100 |
commit | 3faca807fe96f2cefa50023fe373d8bcf1430121 (patch) | |
tree | 00ee8524bb93fb589468edea0502e626f7ff3df2 /Main.hs | |
parent | 3ef786673ff8298124cd3b5ef50c35dbb23f77e2 (diff) |
Move to src/, working HLS in examples/
Diffstat (limited to 'Main.hs')
-rw-r--r-- | Main.hs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Main.hs b/Main.hs deleted file mode 100644 index c9de0cc..0000000 --- a/Main.hs +++ /dev/null @@ -1,27 +0,0 @@ -{-# LANGUAGE LambdaCase #-} -{-# LANGUAGE TupleSections #-} -module Main where - -import System.Environment (getArgs) -import System.Exit (die, exitFailure) - -import Parser - - -main :: IO () -main = do - (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 - - print prog |