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/compiler/GF | |
| 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/compiler/GF')
| -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 |
