私はこのコードを持っています:
divideByTen :: (Floating a ) => a -> a
divideByTen = (/10)
これを.hsファイルに入れると。これでは不十分なようです。
(私はMac osxでghciを使用しています)。
ありがとうございました。
:load ** .hsを実行した後
このエラーが発生しました
byby.hs:1:17:
Class `Floating' used as a type
In the type signature for `divideByTen':
divideByTen :: (Floating a) a -> a
Failed, modules loaded: none.