Danny Gratzer <danny.grat...@gmail.com> writes: > 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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe