Hadrian: Add ./hadrian/ghci.sh script for fast development feedback

Authored by mpickering on Mar 10 2019, 12:43 PM.


Hadrian: Add ./hadrian/ghci.sh script for fast development feedback

Running the ./hadrian/ghci target will load the main compiler into
a ghci session. This is intended for fast development feedback, modules are only
typechecked so it isn't possible to run any functions in the repl.

You can also use this target with ghcid.

The first time this command is run hadrian will need to compile a few dependencies
which will take 1-2 minutes. Loading GHC into GHCi itself takes about 30 seconds.

Internally this works by calling a new hadrian target called tool-args.
This target prints out the package and include flags which are necessary
to load files into ghci. The same target is intended to be used by other
tooling which uses the GHC API in order to set up the correct GHC API
session. For example, using this target it is also possible to use HIE
when developing on GHC.


Marge Bot <ben+marge-bot@smart-cactus.org>Mar 12 2019, 8:04 AM
rGHC4cf2160afe0e: Hadrian: Fix rpath so shared objects work after being copied