I am trying to learn the basics of Haskell and I am having a hard time understanding why the doubleMe type declaration causes an 'Illegal Operator' error, while addThree causes no error at all?
doubleMe :: Int -> Int -> Int
doubleMe x = x + x
addThree :: Int -> Int -> Int -> Int
addThree x y z = x + y + z
I appreciate any clarification.
Many thanks in advance.