Possible Duplicate: Return specific type within Haskell 此代码: class Alpha a where
half :: Real f => a -> f
instance Alpha Double where
half a = a/2.0
产生这个错误: rigid.hs:6:13:
Couldn't
给出一个简单的类: public class Person
{
public string FirstName;
public string LastName;
public string GetFullName()
{
return FirstName + LastName;
}
}
这个类的用户将通过读取XML文件或其他一些
我们都知道如何easy character sets are on the web,但是每当您认为自己的理解正确时,外国的字符集就会让您陷入困境。所以我想跟踪我将在下面描述的虚构场景中发生的步骤。我会尝试尽可能地减少我的理解,但是我的问题是你们要纠正我犯的错误并填写任何空白。 在阅读本场景时,想象一下,这是在John的Mac和Jane的Windows上完成的,如果在任何特定情况下其行为与其他行为不