newcomer to Haskell here.
I have this function:
addNums num1 num2 = num1 + num2 when I try to run addNums 1 -2 with GHCi, it returns this error:
<interactive>:40:1: error: * No instance for (Show (Integer -> Integer)) arising from a use of `print' (maybe you haven't applied a function to enough arguments?) * In a stmt of an interactive GHCi command: print it I notice that in order for it to run as intended, I need to add parentheses: addNums 1 (-2). Why is that?