[Haskell-cafe] Pattern matching does not work like this?

minh thu noteed at gmail.com
Wed Jul 15 05:59:40 EDT 2009

2009/7/15 Magicloud Magiclouds <magicloud.magiclouds at gmail.com>:
> Hi,
>  I do not notice this before. "fun ([0, 1] ++ xs) = .." in my code
> could not be compiled, parse error.

++ is a function; you can't pattern-match on that.


More information about the Haskell-Cafe mailing list