Loading GHC into GHCi (and ghcid)

Ben Gamari ben at smart-cactus.org
Thu Jun 7 21:05:03 UTC 2018

Matthew Pickering <matthewtpickering at gmail.com> writes:

> Hi all,
> Csongor has informed me that he has worked out how to load GHC into
> GHCi which can then be used with ghcid for a more interactive
> development experience.
> 1. Put this .ghci file in compiler/
> https://gist.github.com/mpickering/73749e7783f40cc762fec171b879704c
> 2. Run "../inplace/bin/ghc-stage2 --interactive -odir tmp -hidir tmp"
> from inside compiler/
> It may take a while and require a little bit of memory but in the end
> all 500 or so modules will be loaded.
> It can also be used with ghcid.
> ghcid -c "../inplace/bin/ghc-stage2 --interactive -odir tmp -hidir tmp"
> Hopefully someone who has more RAM than I.
> Can anyone suggest the suitable place on the wiki for this information?
How about on a new page (e.g. Building/InGhci) linked to from,

 * https://ghc.haskell.org/trac/ghc/wiki/Building
 * https://ghc.haskell.org/trac/ghc/wiki/WorkingConventions (in the Tips
   & Tricks section)

It might also be a good idea to add a script to the tree capturing this


- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20180607/8cfb1dfb/attachment.sig>

More information about the ghc-devs mailing list