我有数据类型,例如:
data MyData = Something1 String
and then I had a function
myFunction :: MyData -> String
myFunction x = x
职能 我想提及[S , o , m , e ......] 页: 1 然而,我有以下错误:
Couldn t match expected type
[Char] with actual type
MyData Expected type: String Actual type: MyData
就我所知,[《宪章》]与“努力”相同,我已宣布第1节为“努力”,因此它应当发挥作用?