Provide option to store generated files when using -fno-code with ghci
If you use
-fno-code and try to compile a module which uses Template Haskell then GHC will compile the file in interpreted mode so that it can run the splices. Likewise if you use Unboxed Tuples then it will compile the file using
-fobject-code and produce an object file.
These both produce files which are both stored in a temporary file and then discarded afterwards.
It would be beneficial to provide a flag such as
-nocode-dir which controls where these intermediate files are stored so they can be reused.
See !554 (merged) for some more discussion