summaryrefslogtreecommitdiff
path: root/src/GF.hs
diff options
context:
space:
mode:
authoraarne <unknown>2003-11-03 16:27:55 +0000
committeraarne <unknown>2003-11-03 16:27:55 +0000
commit94326929b144913642121bef8f8ecc98feb992e7 (patch)
tree07d59cc33cbef2ac79c6f3f573b9718c51322e7a /src/GF.hs
parent2728e6e7ceec92c7f781368b4a523b37e5dee3b9 (diff)
Fixed several things, e.g. tokenizer.
Diffstat (limited to 'src/GF.hs')
-rw-r--r--src/GF.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GF.hs b/src/GF.hs
index a75f4ee0c..122d52766 100644
--- a/src/GF.hs
+++ b/src/GF.hs
@@ -14,6 +14,7 @@ import UTF8
import Today (today)
import Arch
import System (getArgs)
+import Monad (foldM)
-- AR 19/4/2000 -- 11/11/2001
@@ -24,8 +25,8 @@ main = do
java = oElem forJava os
putStrLn $ if java then encodeUTF8 welcomeMsg else welcomeMsg
st <- case fs of
- f:_ -> useIOE emptyShellState (shellStateFromFiles os emptyShellState f)
- _ -> return emptyShellState
+ _ -> useIOE emptyShellState $ foldM (shellStateFromFiles os) emptyShellState fs
+ --- _ -> return emptyShellState
if null fs then return () else putCPU
if java then sessionLineJ st else do
gfInteract (initHState st)