summaryrefslogtreecommitdiff
path: root/src/GF/Devel/GFC.hs
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-11-12 09:17:02 +0000
committeraarne <aarne@cs.chalmers.se>2007-11-12 09:17:02 +0000
commitb801149fbf5c9eb3f73477d3496cdfd92cb178a1 (patch)
tree332b6a3ec1b3b56b9ed1d8e19f175f10df970119 /src/GF/Devel/GFC.hs
parenteb7b0286016714128aae742b4cedccc3dc30a9a0 (diff)
merged gfc and gfi to one binary, and a shell script for gfc
Diffstat (limited to 'src/GF/Devel/GFC.hs')
-rw-r--r--src/GF/Devel/GFC.hs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/GF/Devel/GFC.hs b/src/GF/Devel/GFC.hs
index 917a469e9..d074cf4fe 100644
--- a/src/GF/Devel/GFC.hs
+++ b/src/GF/Devel/GFC.hs
@@ -1,4 +1,5 @@
-module Main where
+module GF.Devel.GFC (mainGFC) where
+-- module Main where
import GF.Devel.Compile
import GF.Devel.PrintGFCC
@@ -10,10 +11,8 @@ import GF.GFCC.ParGFCC
import GF.Devel.UseIO
import GF.Infra.Option
-import System
-
-main = do
- xx <- getArgs
+mainGFC :: [String] -> IO ()
+mainGFC xx = do
let (opts,fs) = getOptions "-" xx
case opts of
_ | oElem (iOpt "help") opts -> putStrLn usageMsg