summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GF/Speech/TransformCFG.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GF/Speech/TransformCFG.hs b/src/GF/Speech/TransformCFG.hs
index 31017c61f..57563af19 100644
--- a/src/GF/Speech/TransformCFG.hs
+++ b/src/GF/Speech/TransformCFG.hs
@@ -72,7 +72,7 @@ cfgToCFRules cfg =
nameToTerm (Name f prs) = CFObj f (map profileToTerm prs)
profileToTerm (Unify []) = CFMeta
profileToTerm (Unify xs) = CFRes (last xs) -- FIXME: unify
- profileToTerm (Constant f) = CFConst (maybe "?" prIdent (forestName f))
+ profileToTerm (Constant f) = maybe CFMeta (\x -> CFObj x []) (forestName f)
-- | Remove productions which use categories which have no productions
removeEmptyCats :: CFRules -> CFRules