summaryrefslogtreecommitdiff
path: root/src/GF/API.hs
diff options
context:
space:
mode:
authoraarne <unknown>2004-06-15 13:55:54 +0000
committeraarne <unknown>2004-06-15 13:55:54 +0000
commit3fb91e0f448aa4be317a112fdc95673fb99fa6f6 (patch)
treebfa5f16b457b06eca610541663776051d6deb66e /src/GF/API.hs
parent652618742aa1dd10b1a53bb132a476a91f1dc3ba (diff)
improved make facility: remember state if fails; does not need source
Diffstat (limited to 'src/GF/API.hs')
-rw-r--r--src/GF/API.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GF/API.hs b/src/GF/API.hs
index 77bd71849..c3d160bcd 100644
--- a/src/GF/API.hs
+++ b/src/GF/API.hs
@@ -125,8 +125,8 @@ string2GFCat = string2CFCat
optFile2grammar :: Options -> FilePath -> IOE GFGrammar
optFile2grammar os f = do
- gr <- compileModule os emptyShellState f
- ioeErr $ grammar2stateGrammar os (fst gr)
+ ((_,_,gr),_) <- compileModule os emptyShellState f
+ ioeErr $ grammar2stateGrammar os gr
optFile2grammarE :: Options -> FilePath -> IOE GFGrammar
optFile2grammarE = optFile2grammar