data Mine = Firstname String
| Lastname String
deriving (Show, Serialize)
这不会编译并给出错误
Not in scope: type constructor or class `Serialize'
为什么这不被视为 Serialize 类的成员,尽管它是 Show 类的成员。我认为 Show 类的所有成员都应该毫无问题地序列化?
data Mine = Firstname String
| Lastname String
deriving (Show, Serialize)
这不会编译并给出错误
Not in scope: type constructor or class `Serialize'
为什么这不被视为 Serialize 类的成员,尽管它是 Show 类的成员。我认为 Show 类的所有成员都应该毫无问题地序列化?