Loading GHC into GHCi (and ghcid)

Csongor Kiss kiss.csongor.kiss at gmail.com
Thu Jun 7 20:55:00 UTC 2018

Indeed, it's a lot faster with these flags, thanks for the tip!


> On 7 Jun 2018, at 16:47, Simon Marlow <marlowsd at gmail.com> wrote:
> For loading large amounts of code into GHCi, you want to add -j<n> +RTS -A128m where <n> is the number of cores on your machine. We've found that parallel compilation works really well in GHCi provided you use a nice large allocation area for the GC. This dramatically speeds up working with large numbers of modules in GHCi. (500 is small!)
> Cheers
> Simon
> On 30 May 2018 at 21:43, Matthew Pickering <matthewtpickering at gmail.com <mailto:matthewtpickering at gmail.com>> wrote:
> 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 <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?
> Cheers,
> Matt
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org <mailto:ghc-devs at haskell.org>
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs <http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20180607/fee21889/attachment.html>

More information about the ghc-devs mailing list