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.
Showing
- hadrian/README.md 38 additions, 0 deletionshadrian/README.md
- hadrian/ghci.sh 3 additions, 0 deletionshadrian/ghci.sh
- hadrian/hadrian.cabal 1 addition, 0 deletionshadrian/hadrian.cabal
- hadrian/src/Builder.hs 5 additions, 1 deletionhadrian/src/Builder.hs
- hadrian/src/Main.hs 1 addition, 0 deletionshadrian/src/Main.hs
- hadrian/src/Oracles/Setting.hs 1 addition, 1 deletionhadrian/src/Oracles/Setting.hs
- hadrian/src/Rules.hs 34 additions, 1 deletionhadrian/src/Rules.hs
- hadrian/src/Settings.hs 3 additions, 1 deletionhadrian/src/Settings.hs
- hadrian/src/Settings/Builders/Ghc.hs 12 additions, 1 deletionhadrian/src/Settings/Builders/Ghc.hs
- hadrian/src/Settings/Flavours/GhcInGhci.hs 25 additions, 0 deletionshadrian/src/Settings/Flavours/GhcInGhci.hs
Loading
Please register or sign in to comment