summaryrefslogtreecommitdiff
path: root/src/GF/UseGrammar/Randomized.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GF/UseGrammar/Randomized.hs')
-rw-r--r--src/GF/UseGrammar/Randomized.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GF/UseGrammar/Randomized.hs b/src/GF/UseGrammar/Randomized.hs
index 200e69104..d2e26a18b 100644
--- a/src/GF/UseGrammar/Randomized.hs
+++ b/src/GF/UseGrammar/Randomized.hs
@@ -45,7 +45,7 @@ mkTreeFromInts ints gr catfun = do
return $ loc2tree state
mkStateFromInts :: [Int] -> CGrammar -> Action
-mkStateFromInts ints gr = mkRandomState ints where
+mkStateFromInts ints gr z = mkRandomState ints z >>= reCheckState gr where
mkRandomState [] state = do
testErr (isCompleteState state) "not completed"
return state