summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbjorn <bjorn@bringert.net>2008-09-26 15:04:13 +0000
committerbjorn <bjorn@bringert.net>2008-09-26 15:04:13 +0000
commit0f4e8468be45a8154098c44caa28cace147aa8ce (patch)
treec4e9181853964051cecbed467a1cebeba9d18aa2 /src
parent804232aebc2cfe52fa2f9451dfc3b10516e92b98 (diff)
Added isLiteralCat function to PGF.Macros.
Diffstat (limited to 'src')
-rw-r--r--src/GF/Speech/VoiceXML.hs4
-rw-r--r--src/PGF/Macros.hs3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/GF/Speech/VoiceXML.hs b/src/GF/Speech/VoiceXML.hs
index 14a93c796..27a948863 100644
--- a/src/GF/Speech/VoiceXML.hs
+++ b/src/GF/Speech/VoiceXML.hs
@@ -45,10 +45,6 @@ pgfSkeleton pgf = [(c,[(f,fst (catSkeleton (lookType pgf f))) | f <- fs])
| (c,fs) <- Map.toList (catfuns (abstract pgf)),
not (isLiteralCat c)]
--- FIXME: should this go in a more general module?
-isLiteralCat :: CId -> Bool
-isLiteralCat = (`elem` [mkCId "String", mkCId "Float", mkCId "Int"])
-
--
-- * Questions to ask
--
diff --git a/src/PGF/Macros.hs b/src/PGF/Macros.hs
index bb5e8188b..f579c07dd 100644
--- a/src/PGF/Macros.hs
+++ b/src/PGF/Macros.hs
@@ -136,4 +136,5 @@ combinations t = case t of
[] -> [[]]
aa:uu -> [a:u | a <- aa, u <- combinations uu]
-
+isLiteralCat :: CId -> Bool
+isLiteralCat = (`elem` [mkCId "String", mkCId "Float", mkCId "Int"]) \ No newline at end of file