summaryrefslogtreecommitdiff
path: root/src/runtime/haskell
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2010-10-13 12:38:51 +0000
committerkrasimir <krasimir@chalmers.se>2010-10-13 12:38:51 +0000
commit09ce38742c5232c048857cb1fa18936782ba8fa1 (patch)
treed95ec4ca43d11246be87f2ca0b8c4fadf661defd /src/runtime/haskell
parentcecf94d7294abbb7c74fec6c8cd96abb4916fcb9 (diff)
fix PGF.Generate.restart. The restart should be done only if there are some solutions found
Diffstat (limited to 'src/runtime/haskell')
-rw-r--r--src/runtime/haskell/PGF/Generate.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/haskell/PGF/Generate.hs b/src/runtime/haskell/PGF/Generate.hs
index 5073b34ca..3e4285617 100644
--- a/src/runtime/haskell/PGF/Generate.hs
+++ b/src/runtime/haskell/PGF/Generate.hs
@@ -148,5 +148,5 @@ restart :: RandomGen g => g -> (g -> [a]) -> [a]
restart g f =
let (g1,g2) = split g
in case f g1 of
- [] -> restart g2 f
+ [] -> []
(x:xs) -> x : restart g2 f