【发布时间】:2016-03-03 21:34:25
【问题描述】:
这个定义在ghci有效:
recip :: Fractional a ⇒ a → a
recip n = 1 / n
在frege-repl 中尝试我得到了:
E <console>.fr:6: can't resolve `Fractional`, did you mean `Exceptional`
perhaps?
"Hoogling" Fractional 什么也没给我。
【问题讨论】:
-
尝试使用
(/)代替。 -
@DanielWagner 应该改成“Froogling”吗?