summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Quiz.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2010-04-30 20:18:26 +0000
committerkrasimir <krasimir@chalmers.se>2010-04-30 20:18:26 +0000
commit9e7b914c3c5384feed3981acae89afaa7402e92b (patch)
tree1b1e1e1132cbfb752b38d2b9675583c7c7067092 /src/compiler/GF/Quiz.hs
parent1c590e41f4a1e94e050980a6b161e4385a9e7cfa (diff)
for backward compatibility we have the old parse function again. the old functionality is exposed by parse_
Diffstat (limited to 'src/compiler/GF/Quiz.hs')
-rw-r--r--src/compiler/GF/Quiz.hs5
1 files changed, 1 insertions, 4 deletions
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 ->