From 14061ef4df8da8cad6f1c88b40d29bd5913a5155 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 23 Sep 2013 09:18:27 +0000 Subject: GF.Grammar.Grammar.allExtends now returns a list of source modules instead of just the module names. This saves extra lookups later --- src/compiler/GF/Compile/GrammarToPGF.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/compiler/GF/Compile/GrammarToPGF.hs') diff --git a/src/compiler/GF/Compile/GrammarToPGF.hs b/src/compiler/GF/Compile/GrammarToPGF.hs index b1a2c5d33..41f6f8ff0 100644 --- a/src/compiler/GF/Compile/GrammarToPGF.hs +++ b/src/compiler/GF/Compile/GrammarToPGF.hs @@ -65,8 +65,7 @@ mkCanon2pgf opts gr am = do [(0,i2i f) | ((m,f),AbsFun (Just (L _ ty)) _ _ (Just True),_) <- adefs, snd (GM.valCat ty) == cat] mkConcr cm = do - let cflags = concatOptions [mflags mo | (i,mo) <- modules gr, isModCnc mo, - Just r <- [lookup i (allExtendSpecs gr cm)]] + let cflags = concatOptions [mflags mo | (i,mo) <- modules gr, isModCnc mo] (seqs,cdefs) <- addMissingPMCFGs Map.empty -- cgit v1.2.3