[Haskell-cafe] list comprehension doesn't work

Keshav Kini keshav.kini at gmail.com
Thu May 16 04:26:00 CEST 2013


Danny Gratzer <danny.gratzer at 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




More information about the Haskell-Cafe mailing list