mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
fix a warning in the compiler
This commit is contained in:
@@ -578,7 +578,7 @@ getPMCFG :: PMCFGEnv -> PMCFG
|
|||||||
getPMCFG (PMCFGEnv prodSet funSet) =
|
getPMCFG (PMCFGEnv prodSet funSet) =
|
||||||
PMCFG (optimize prodSet) (mkSetArray funSet)
|
PMCFG (optimize prodSet) (mkSetArray funSet)
|
||||||
where
|
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
|
where
|
||||||
ff :: (FId,FunId) -> [[[FId]]] -> [Production] -> [Production]
|
ff :: (FId,FunId) -> [[[FId]]] -> [Production] -> [Production]
|
||||||
ff (fid,funid) xs prods
|
ff (fid,funid) xs prods
|
||||||
|
|||||||
Reference in New Issue
Block a user