[commit: ghc] master: Hadrian: Add ./hadrian/ghci.sh script for fast development feedback (2d7dd02)

git at git.haskell.org git at git.haskell.org
Tue Mar 12 13:15:01 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2d7dd0285bbc364f89d4d97928674f7ea73ed2c8/ghc

>---------------------------------------------------------------

commit 2d7dd0285bbc364f89d4d97928674f7ea73ed2c8
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date:   Sun Mar 10 17:43:10 2019 +0000

    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.


>---------------------------------------------------------------

2d7dd0285bbc364f89d4d97928674f7ea73ed2c8
 hadrian/README.md                          | 38 ++++++++++++++++++++++++++++++
 hadrian/ghci.sh                            |  3 +++
 hadrian/hadrian.cabal                      |  1 +
 hadrian/src/Builder.hs                     |  6 ++++-
 hadrian/src/Main.hs                        |  1 +
 hadrian/src/Oracles/Setting.hs             |  2 +-
 hadrian/src/Rules.hs                       | 35 ++++++++++++++++++++++++++-
 hadrian/src/Settings.hs                    |  4 +++-
 hadrian/src/Settings/Builders/Ghc.hs       | 13 +++++++++-
 hadrian/src/Settings/Flavours/GhcInGhci.hs | 25 ++++++++++++++++++++
 10 files changed, 123 insertions(+), 5 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 2d7dd0285bbc364f89d4d97928674f7ea73ed2c8


More information about the ghc-commits mailing list