[Haskell-beginners] first number is a list
tom.davie at gmail.com
Mon Jun 27 13:51:15 CEST 2011
On 27 Jun 2011, at 12:48, David Virebayre wrote:
>> But then I see these error :
>> Could not match expected type "Bool" with actual type [a0] -> a0
> It's quite clear: The compiler expects a function that'll return a
> Bool value, but you gave it one that takes a list and returns an
> element from the list.
Actually it's saying it expects a bool value, no function at all.
More information about the Beginners