Lets say I'd like to map the Java code:
package mypackage;
class A {
public String[] values() {
return new String[]{"one", "two"};
}
}
To its Frege counterpart:
data AA = pure native mypackage.A where
native values :: AA -> [String]
At the moment Frege complains with:
error: incompatible types: String[] cannot be converted to TList
How can I map a Java array to Frege ?