假设我想映射 Java 代码:
package mypackage;
class A {
public String[] values() {
return new String[]{"one", "two"};
}
}
对它的弗雷格对应物:
data AA = pure native mypackage.A where
native values :: AA -> [String]
目前弗雷格抱怨:
error: incompatible types: String[] cannot be converted to TList
如何将 Java 数组映射到 Frege?