How to ship an executable with Language.Haskell.Interpreter?
Solution 1:
Shipping an executable with Language.Haskell.Interpreter
seems to go perfect with the way you have shown. You have to set your PATH
to the script you want to execute.
And as of side note, as mentioned by @bennofs in comments, Statically linking the GHC API doesn't work with the new dynamic linker introduced in GHC 7.8, (interactive code execution now requires dynamic libraries).