From ae79e7c386fd454ee91bb93c32fafc7c443f7989 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 23 Sep 2013 09:20:55 +0000 Subject: [PATCH] fix a warning in the compiler --- src/compiler/GF/Compile/GeneratePMCFG.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/GF/Compile/GeneratePMCFG.hs b/src/compiler/GF/Compile/GeneratePMCFG.hs index 82f8ba61a..0afa2bd49 100644 --- a/src/compiler/GF/Compile/GeneratePMCFG.hs +++ b/src/compiler/GF/Compile/GeneratePMCFG.hs @@ -578,7 +578,7 @@ getPMCFG :: PMCFGEnv -> PMCFG getPMCFG (PMCFGEnv prodSet funSet) = PMCFG (optimize prodSet) (mkSetArray funSet) where - optimize ps = Map.foldWithKey ff [] (Map.fromListWith (++) [((fid,funid),[args]) | (Production fid funid args) <- Set.toList ps]) + optimize ps = Map.foldrWithKey ff [] (Map.fromListWith (++) [((fid,funid),[args]) | (Production fid funid args) <- Set.toList ps]) where ff :: (FId,FunId) -> [[[FId]]] -> [Production] -> [Production] ff (fid,funid) xs prods