aboutsummaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-02-17 09:22:49 +0100
committerTom Smeding <tom@tomsmeding.com>2024-02-17 09:22:49 +0100
commit3faca807fe96f2cefa50023fe373d8bcf1430121 (patch)
tree00ee8524bb93fb589468edea0502e626f7ff3df2 /Main.hs
parent3ef786673ff8298124cd3b5ef50c35dbb23f77e2 (diff)
Move to src/, working HLS in examples/
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs27
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