search for: runhaskel

Displaying 1 result from an estimated 1 matches for "runhaskel".

Did you mean: runhaskell
2010 Dec 12
1
R <-> Haskell
...for loading plugins in Haskell, and for an eval() like set of functions provided by the Haskell hs-plugin package that evaluates arbitrary strings in the IO monad. http://www.cse.unsw.edu.au/~dons/hs-plugins/paper/ describes this functionality. For example: #include <stdio.h> #include "RunHaskell.h" int main(int argc, char *argv[]) { int *p; hs_init(&argc, &argv); p = hs_eval_i("foldl1 (+) [0 .. 10]"); /* this is Haskell code */ printf("%d\n", *p); hs_exit(); } That said, i don't think it will be that difficutl. But I imagine the hardest part o...