在 GHCi 中:
- 前奏> (+3) 2
5- 前奏> (*3) 2
6- 前奏>(/3)2
0.6666666666666666- Prelude> (-3) 2
(Num (t -> t1))
没有由字面 it' 产生的实例:it = (- 3) 23' at <interactive>:1:2
Possible fix: add an instance declaration for (Num (t -> t1))
In the expression: 3
In the expression: (- 3) 2
In the definition of
如何更正最后一个以使其返回-1?