|
|
1
19
这里需要的是广义的newtype派生扩展:
输出:
|
|
|
2
5
Extensions to the deriving mecanism 这些修改通常显示为将来的标准语言扩展(如上所示) haskell' wiki
然后像往常一样在newtype声明中使用派生
|
|
|
3
1
广义newtypedering |