diff options
| author | Krasimir Angelov <kr.angelov@gmail.com> | 2018-11-30 12:18:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-30 12:18:24 +0100 |
| commit | fdc5659f800bc37c51e3ddbdfdd0c8f3febb6b6c (patch) | |
| tree | d1e817ac40effc2bae2cca0bb07b393b6e7d2a77 /src/runtime/haskell/PGF/Optimize.hs | |
| parent | f898c250baf0d94f99b60bbf155c887442e40775 (diff) | |
| parent | 4d34c7f66b1783423387c9dae359bd38f64426dd (diff) | |
Merge pull request #19 from MUSTE-Project/master
Fix deprecations from containers >= 0.4.0.0
Diffstat (limited to 'src/runtime/haskell/PGF/Optimize.hs')
| -rw-r--r-- | src/runtime/haskell/PGF/Optimize.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/haskell/PGF/Optimize.hs b/src/runtime/haskell/PGF/Optimize.hs index 6e7f51fb2..d3fb9290e 100644 --- a/src/runtime/haskell/PGF/Optimize.hs +++ b/src/runtime/haskell/PGF/Optimize.hs @@ -185,8 +185,8 @@ filterProductions prods0 prods | prods0 == prods1 = prods0 | otherwise = filterProductions prods1 prods where - prods1 = IntMap.foldWithKey foldProdSet IntMap.empty prods - hoc = IntMap.fold (\set !hoc -> Set.fold accumHOC hoc set) IntSet.empty prods + prods1 = IntMap.foldrWithKey foldProdSet IntMap.empty prods + hoc = IntMap.foldr (\set !hoc -> Set.foldr accumHOC hoc set) IntSet.empty prods foldProdSet fid set !prods | Set.null set1 = prods @@ -204,7 +204,7 @@ filterProductions prods0 prods accumHOC _ hoc = hoc splitLexicalRules cnc p_prods = - IntMap.foldWithKey split (IntMap.empty,IntMap.empty) p_prods + IntMap.foldrWithKey split (IntMap.empty,IntMap.empty) p_prods where split fid set (lex,syn) = let (lex0,syn0) = Set.partition isLexical set |
