[Haskell-beginners] Parse error in pattern
Zhi-Qiang Lei
zhiqiang.lei at gmail.com
Sat Jan 7 18:10:31 CET 2012
What an idiot am I! Thank you very much.
On Jan 8, 2012, at 12:49 AM, Brent Yorgey wrote:
> On Sun, Jan 08, 2012 at 12:11:29AM +0800, Zhi-Qiang Lei wrote:
>>
>> scan :: [Point a] -> [Point a]
>> scan p1 : p2 : p3 : xs
>
> Patterns with constructors and multiple components must be surrounded
> by parentheses. So this should be
>
> scan (p1 : p2 : p3 : xs)
>
> -Brent
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
Best regards,
Zhi-Qiang Lei
zhiqiang.lei at gmail.com
More information about the Beginners
mailing list