Lets say I have a haskell function add in math.hs
How can I run the add function through a Java program and store the output as a variable?
Maybe something like the following:
public int runHaskell(String haskellFile) {
int output;
//run add function from file 'math.hs' and store result to output
return output;
}
( If required I also have access to the object file: math.o and the interpreter file math.hi as well as the executable main.exe. )