summaryrefslogtreecommitdiff
path: root/transfer/compile_to_core.hs
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2005-12-05 16:53:27 +0000
committerbringert <bringert@cs.chalmers.se>2005-12-05 16:53:27 +0000
commitf4a28c94aabfdef6011294db3d36860dcb5badb3 (patch)
tree73dbd3e3ed549f90be0803cde9bb09553e94af1c /transfer/compile_to_core.hs
parent56e9e45171c306f8b539722d3653dafc339212ce (diff)
Renamed transfer compiler and interpreter.
Diffstat (limited to 'transfer/compile_to_core.hs')
-rw-r--r--transfer/compile_to_core.hs25
1 files changed, 0 insertions, 25 deletions
diff --git a/transfer/compile_to_core.hs b/transfer/compile_to_core.hs
deleted file mode 100644
index b35d906d0..000000000
--- a/transfer/compile_to_core.hs
+++ /dev/null
@@ -1,25 +0,0 @@
-module Main where
-
-import Transfer.CompilerAPI
-
-import Data.List (partition, isPrefixOf)
-import System.Environment
-import System.Exit
-import System.IO
-
-die :: String -> IO a
-die s = do
- hPutStrLn stderr s
- exitFailure
-
-main :: IO ()
-main = do
- args <- getArgs
- let (flags,files) = partition ("-" `isPrefixOf`) args
- path = [ p | ('-':'i':p) <- flags ]
- case files of
- [f] -> do
- cf <- compileFile path f
- putStrLn $ "Wrote " ++ cf
- return ()
- _ -> die "Usage: compile_to_core [-i<path> [-i<path> ... ]] <file>"