Re: Stepping through ghc

2014-10-07 Thread Omar Mefire
: GitHub pull requests (Richard Eisenberg) 2. RE: Show instance for SrcSpan (Simon Peyton Jones) 3. Re: GitHub pull requests (Ben Gamari) 4. Re: Stepping through ghc (Arash Rouhani) 5. RE: Again: Uniques in GHC (p.k.f.holzensp...@utwente.nl

Re: Stepping through ghc

2014-10-07 Thread Richard Eisenberg
In direct answer to your question, there's not a great way to step through the code. As far as I know, there isn't a way to load GHC into GHCi. Personally, I think a lot about the type-checker and so use -ddump-tc-trace a lot. You can line up the output with the code to see what is going on.

Stepping through ghc

2014-10-06 Thread Omar Mefire
Hi, I'm new to ghc codebase and I'm interested in stepping through the code in order to gain a better idea of how it all works. - Is there a way to load ghc into ghci ? and debug through it ? - What are the ways experienced ghc devs step through the code ? - Any techniques you guys recommend ?

Re: Stepping through ghc

2014-10-06 Thread Arash Rouhani
Hi Omar, You might want to narrow your scope to one part of GHC. For example, I mostly focused on the Run Time System to be able to conduct my master's thesis. Also, you might want to start off with a tiny goal, like to fix bug XYZ. Oh, and most important of all is the Commentary, which I

Re: Stepping through ghc

2014-10-06 Thread Carter Schonwald
Yeah , picking a single subsystem to get started is a very good and healthy idea. On Oct 6, 2014 2:50 PM, Arash Rouhani rar...@student.chalmers.se wrote: Hi Omar, You might want to narrow your scope to one part of GHC. For example, I mostly focused on the Run Time System to be able to