diff options
Diffstat (limited to 'src/GF/Speech')
| -rw-r--r-- | src/GF/Speech/VoiceXML.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GF/Speech/VoiceXML.hs b/src/GF/Speech/VoiceXML.hs index cf6f7120f..134964062 100644 --- a/src/GF/Speech/VoiceXML.hs +++ b/src/GF/Speech/VoiceXML.hs @@ -226,16 +226,16 @@ string s = "'" ++ concatMap esc s ++ "'" -- isListCat :: (CId, [(CId, [CId])]) -> Bool -isListCat (cat,rules) = "List" `isPrefixOf` prIdent cat && length rules == 2 +isListCat (cat,rules) = "List" `isPrefixOf` showIdent cat && length rules == 2 && ("Base"++c) `elem` fs && ("Cons"++c) `elem` fs - where c = drop 4 (prIdent cat) - fs = map (prIdent . fst) rules + where c = drop 4 (showIdent cat) + fs = map (showIdent . fst) rules isBaseFun :: CId -> Bool -isBaseFun f = "Base" `isPrefixOf` prIdent f +isBaseFun f = "Base" `isPrefixOf` showIdent f isConsFun :: CId -> Bool -isConsFun f = "Cons" `isPrefixOf` prIdent f +isConsFun f = "Cons" `isPrefixOf` showIdent f baseSize :: (CId, [(CId, [CId])]) -> Int baseSize (_,rules) = length bs |
