Hi. Our project’s Types.hs
isn’t particularly big currently, it’s 239 lines, has 11 types (mostly newtypes) and 5 functions. It has substantial number of “deriving” clauses, but nothing that you’d expect to blow things up.
Unfortunately, compilation of that module (as listed by stack build
) takes quite a long time, very noticeable compared to others, memory usage is higher as well.
I was wondering, what is the state of tools, currently available, to get more detailed information on which stages exactly are taking time? Is there any tooling available, that is somewhat more high-level than to try to build GHC itself with profiling?
Ideally, I’d like to understand if there’s something I can do, by means of either reorganizing the code, or by putting more hand-written instances, that would lighten up compilation times.
Thank you!