1
任何人都可以解釋此錯誤消息嗎?根據Hackage,Data.Convertible.Base,版本1.0.11.1的實例聲明爲Convertible Int Double
。沒有用於(Convertible Int Double)的實例
λ> :set -package=convertible-1.0.11.1
package flags have changed, resetting and loading new packages...
λ> import Data.Convertible.Base
λ> let b = 3 :: Int
λ> convert b :: Double
<interactive>:18:1:
No instance for (Convertible Int Double)
arising from a use of `convert'
Possible fix:
add an instance declaration for (Convertible Int Double)
In the expression: convert b :: Double
In an equation for `it': it = convert b :: Double