summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeb <unknown>2005-05-10 11:52:06 +0000
committerpeb <unknown>2005-05-10 11:52:06 +0000
commit6f3229f087b0655d28b6a39fcd9b9b4174d38137 (patch)
tree64cc814294e548448ea4d2ecdd5e0f8721e15a60 /src
parent5111762d31a50c4fccc8da02c7c327a2b51d0e77 (diff)
"Committed_by_peb"
Diffstat (limited to 'src')
-rw-r--r--src/GF/Conversion/GFCtoSimple.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/GF/Conversion/GFCtoSimple.hs b/src/GF/Conversion/GFCtoSimple.hs
index f0badda3a..e7a3789a4 100644
--- a/src/GF/Conversion/GFCtoSimple.hs
+++ b/src/GF/Conversion/GFCtoSimple.hs
@@ -4,9 +4,9 @@
-- Stability : (stable)
-- Portability : (portable)
--
--- > CVS $Date: 2005/05/09 09:28:43 $
+-- > CVS $Date: 2005/05/10 12:52:06 $
-- > CVS $Author: peb $
--- > CVS $Revision: 1.6 $
+-- > CVS $Revision: 1.7 $
--
-- Converting GFC to SimpleGFC
--
@@ -116,7 +116,8 @@ convertTerm gram (A.K (A.KS tok)) = Token tok
-- 'pre' tokens are converted to variants (over-generating):
convertTerm gram (A.K (A.KP strs vars))
= variants $ map conc $ strs : [ vs | A.Var vs _ <- vars ]
- where conc = foldr1 (?++) . map Token
+ where conc [] = Empty
+ conc ts = foldr1 (?++) $ map Token ts
convertTerm gram (A.I con) = error "GFCtoSimple.convertTerm: cannot handle 'I' constructor"
convertTerm gram (A.EInt int) = error "GFCtoSimple.convertTerm: cannot handle 'EInt' constructor"