本文介绍了Haskell编码..请帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
--Compute for Rectangular Area
main = do
putStr $ "Length: "
len <- getLine
putStr $ "Width: "
wid <- getLine
putStr $ getArea len wid
getArea a b = a * b
这是我的代码.
当我在WinHugs中加载它时..
this is my code..
when i load it in WinHugs..
ERROR file:{Hugs}\packages\bin\RecArea.hs:2 - Unresolved top-level overloading
*** Binding : main
*** Outstanding context : Num [Char]
我该怎么办?..
what should i do?..
推荐答案
这是我的代码.
当我在WinHugs中加载它时..
this is my code..
when i load it in WinHugs..
ERROR file:{Hugs}\packages\bin\RecArea.hs:2 - Unresolved top-level overloading
*** Binding : main
*** Outstanding context : Num [Char]
我该怎么办?..
what should i do?..
这篇关于Haskell编码..请帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!