
16 May
2013
16 May
'13
2:26 a.m.
Danny Gratzer
But this still doesn't really work since it'll loop forever without finding any solutions. Haskell's list comprehensions don't play very nicely with multiple infinite lists. If you really want to use this style of programming for your problem, have a look at the logict package on Hackage, it has functions designed to solve the problem of multiple infinite choices.
See also the control-monad-omega package. -Keshav