diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-09-23 09:20:55 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-09-23 09:20:55 +0000 |
| commit | 54c3924a11dce931215c94296275df6dfc17190c (patch) | |
| tree | c8cea4ea7b54f9d1640ca0c3889921addc878d51 /src/compiler/GF/Compile/GeneratePMCFG.hs | |
| parent | 14061ef4df8da8cad6f1c88b40d29bd5913a5155 (diff) | |
fix a warning in the compiler
Diffstat (limited to 'src/compiler/GF/Compile/GeneratePMCFG.hs')
| -rw-r--r-- | src/compiler/GF/Compile/GeneratePMCFG.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
