<div dir="ltr">Devs,<div><br></div><div>I use Stack for all of my Haskell development. I recently ran into several bugs, which I suspected to be GHC bugs. In the process of creating new tickets, I noticed a banner reading "<em style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,"Bitstream Vera Sans",Helvetica,sans-serif">Please try to provide reproduction instructions which do not require "Stack"." </em><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,"Bitstream Vera Sans",Helvetica,sans-serif">The request is reasonable to help weed out bugs in Stack itself, but I could use some advice on how to do that.</span></div><div><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,"Bitstream Vera Sans",Helvetica,sans-serif"><br></span></div><div><div><font color="#000000" face="Verdana, Arial, Bitstream Vera Sans, Helvetica, sans-serif">In particular, I'm having trouble reproducing bugs related to profiling. For example, <a href="https://ghc.haskell.org/trac/ghc/ticket/16182">#16182</a> is about runtime crashes with the -hr profiling option. This was clearly a GHC bug rather than a problem with stack, yet I have so far been unable to produce the bug without Stack. Similarly, for <a href="https://ghc.haskell.org/trac/ghc/ticket/16166">#16166</a>, I filed the ticket, then after failing to reproduce the bug with cabal, assumed it must be a stack bug. Fortunately, RyanGlScott noticed and was able to confirm that it is in fact a GHC bug. Ryan explained that my problem reproducing with cabal is due to differences in the profiling options used by stack and cabal.<br></font></div></div><div><font color="#000000" face="Verdana, Arial, Bitstream Vera Sans, Helvetica, sans-serif"><br></font></div><div><font color="#000000" face="Verdana, Arial, Bitstream Vera Sans, Helvetica, sans-serif">In summary, it would be helpful to have some instructions on how to take a bug produced using Stack to one produced without. </font><span style="color:rgb(0,0,0);font-family:Verdana,Arial,"Bitstream Vera Sans",Helvetica,sans-serif">For example, if `stack build [--profile] foo` produces a compile bug, how should I use cabal to definitively determine if the bug is a problem with Stack or GHC? Presumably it would begin with `cabal sandbox init`. Are there special options to put in the cabal.config file so that cabal uses the same profiling options as stack? Will those options be used when building all dependencies?</span></div><div><font color="#000000" face="Verdana, Arial, Bitstream Vera Sans, Helvetica, sans-serif"><br></font></div><div><font color="#000000" face="Verdana, Arial, Bitstream Vera Sans, Helvetica, sans-serif">Thanks,</font></div><div><font color="#000000" face="Verdana, Arial, Bitstream Vera Sans, Helvetica, sans-serif">Eric Crockett</font></div></div>