[Haskell-cafe] Implicit concatenation in list comprehensions

Felipe Lessa felipe.lessa at gmail.com
Tue Jul 21 19:43:15 EDT 2009


On Tue, Jul 21, 2009 at 12:29:18PM -0700, Dan Weston wrote:
> This would mean that
>
>  [   | c ] = concat $ do { c; return [] }
>
> The right is legal Haskell and gives []. The left is (not yet)
> legal. Should it be?

Please, please, do not allow that.
People wanting [] should write [].

Thanks!

--
Felipe.


More information about the Haskell-Cafe mailing list