withArgs package:hint
Executes the interpreter, setting the args as though they were
command-line args. In particular, this means args that have no effect
with :set in ghci might function properly from this context.
Warning: Some options may interact badly with the Interpreter.
A variant of unsafeRunInterpreterWithArgs which also lets you
specify the folder in which the GHC bootstrap libraries (base,
containers, etc.) can be found. This allows you to run hint on a
machine in which GHC is not installed.
A typical libdir value could be
usrlibghc-8.0.1ghc-8.0.1.