[Haskell-cafe] What's going on here?

Rahul Kapoor rk at trie.org
Sat Jan 16 22:15:01 EST 2010


>>*Main> dropFirst [3 4 5 6]
List members are separated by commas.

Space in Haskell denotes function application. Hence the error message:
Hence t
>     No instance for (Num (t -> t1 -> t2 -> Int))
>       arising from the literal `3' at <interactive>:1:11-17
>     Possible fix:
>       add an instance declaration for (Num (t -> t1 -> t2 -> Int))


More information about the Haskell-Cafe mailing list