Runtime Haskell interpreter
#6Is it possible to move the first argument of GHC.runGhcT to runInterpreterWithArgs?
Just GHC.Paths.libdir
is a hardcoded argument of GHC.runGhcT
in InterpreterT.execute
. Is it possible to move it somewhere? for example to runInterpreterWithArgs
or runInterpreterWithLibDir
?
I added a patch which does that thing. It's available here: https://github.com/flowbox-public/hint/commit/44d04ec43f60a96f2f32444b60969a2da8325414
- description updated
- description updated
I added a patch which does that thing. It's available here: https://github.com/remdezx/hint/commit/44d04ec43f60a96f2f32444b60969a2da8325414
One could add it as an optional argument somewhere, but note that it is in general a very unsafe thing to do. Why would you want that?
I need it because I need to use custom ghc installation and use its libdir instead of system one.
- description updated
recent versions of ghc use an environment variable for that as well, your hint based program will pick it up as well