<div dir="ltr"><div>I'd put it here: <a href="https://ghc.haskell.org/trac/ghc/wiki/Debugging/Compiler">https://ghc.haskell.org/trac/ghc/wiki/Debugging/Compiler</a><br><br></div>How about loading GHCi in GHCi :)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 7:03 PM, Richard Eisenberg <span dir="ltr"><<a href="mailto:eir@cis.upenn.edu" target="_blank">eir@cis.upenn.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi devs,<br>
<br>
I spent some of my time at Hac Phi this past weekend teaching a few people the ropes about GHC hacking. One innocently asked if it's possible to load GHC into GHCi. I shuddered at the thought. But, actually, you can get quite close to this ideal:<br>
<br>
> ghc-stage2 --interactive<br>
GHCi, version 7.11.20151104: <a href="http://www.haskell.org/ghc/" rel="noreferrer" target="_blank">http://www.haskell.org/ghc/</a> :? for help<br>
Prelude> :set -package ghc -- THIS IS THE KEY LINE<br>
package flags have changed, resetting and loading new packages...<br>
Prelude> import TcMType<br>
Prelude TcMType> :t newEvVar<br>
newEvVar<br>
:: forall gbl lcl.<br>
TcType.TcPredType -> TcRnTypes.TcRnIf gbl lcl Var.EvVar<br>
Prelude TcMType><br>
<br>
Pretty cool, huh? This improves my life. Hopefully it improves yours, too.<br>
<br>
Richard<br>
<br>
PS: Can anyone recommend a place on the wiki where I should put this?<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div><br></div>