diff options
| author | Peter Ljunglöf <peter.ljunglof@heatherleaf.se> | 2018-11-30 11:52:56 +0100 |
|---|---|---|
| committer | Peter Ljunglöf <peter.ljunglof@heatherleaf.se> | 2018-11-30 11:52:56 +0100 |
| commit | 4d34c7f66b1783423387c9dae359bd38f64426dd (patch) | |
| tree | 9e8d02f3d55d4107002e6ce3b4b0dd4b39561ad7 /src/compiler | |
| parent | 5ef390f18859662fc4ff76e2ec0933151e505bc9 (diff) | |
Fix deprecations from containers >= 0.4.0.0
E.g. `foldWithKey` has been deprecated since 0.4.0.0 (November 2010)[1] and has been removed in 0.6.0.1 (2018)[2]
[1]: https://github.com/haskell/containers/blob/master/changelog.md#0400--nov-2010
[2]: https://github.com/haskell/containers/blob/master/changelog.md#death-of-deprecated-functions
(commit originally by @fredefox)
Diffstat (limited to 'src/compiler')
| -rw-r--r-- | src/compiler/GF/Speech/PGFToCFG.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/GF/Speech/PGFToCFG.hs b/src/compiler/GF/Speech/PGFToCFG.hs index 8cb01f3a9..a8ecec27d 100644 --- a/src/compiler/GF/Speech/PGFToCFG.hs +++ b/src/compiler/GF/Speech/PGFToCFG.hs @@ -57,7 +57,7 @@ pgfToCFG pgf lang = mkCFG (showCId (lookStartCat pgf)) extCats (startRules ++ co topdownRules cat = f cat [] where - f cat rules = maybe rules (Set.fold g rules) (IntMap.lookup cat (productions cnc)) + f cat rules = maybe rules (Set.foldr g rules) (IntMap.lookup cat (productions cnc)) g (PApply funid args) rules = (cncfuns cnc ! funid,args) : rules g (PCoerce cat) rules = f cat rules |
