为什么这个定义在 GHCi 中失败了?
let f = (*2)+1
和
No instance for (Num (a0 -> a0))
arising from a use of `+'
Possible fix: add an instance declaration for (Num (a0 -> a0))
In the expression: (* 2) + 1
In an equation for `f': f = (* 2) + 1
它与以下有何不同?
let f x = x*2+1