Document passing object files files in the command line when compiling modules
The GHC user's guide should explain the meaning of object file arguments when compiling Haskell modules. This ticket is a follow up of #21035 (closed).
Usually, the object files would be needed only when linking a program. But when using Template Haskell the object files can be loaded in the interpreter for execution of splices. Furthermore, the object files can belong to modules in external packages, so it is not strictly necessary that a static/shared library is linked in order to use the object files in TH.
Right now, loading object files in the interpreter only works when using the internal interpreter. But it would work eventually in the external interpreter as well.
- GHC version used (if appropriate): 8.10.7