From 9e7b914c3c5384feed3981acae89afaa7402e92b Mon Sep 17 00:00:00 2001 From: krasimir Date: Fri, 30 Apr 2010 20:18:26 +0000 Subject: for backward compatibility we have the old parse function again. the old functionality is exposed by parse_ --- src/compiler/GF/Quiz.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/compiler/GF/Quiz.hs') diff --git a/src/compiler/GF/Quiz.hs b/src/compiler/GF/Quiz.hs index 2a9b28ccb..0c48ea67d 100644 --- a/src/compiler/GF/Quiz.hs +++ b/src/compiler/GF/Quiz.hs @@ -46,10 +46,7 @@ translationList mex mprobs pgf ig og typ number = do return $ map mkOne $ ts where mkOne t = (norml (linearize pgf ig t), map (norml . linearize pgf og) (homonyms t)) - homonyms t = - case (fst . parse pgf ig typ . linearize pgf ig) t of - ParseResult ts -> ts - _ -> [] + homonyms = parse pgf ig typ . linearize pgf ig morphologyList :: Maybe Expr -> Maybe Probabilities -> -- cgit v1.2.3