
On Fri, May 18, 2007 at 05:51:12PM -0400, Isaac Dupree wrote:
Could there be a flag weaker than -O that doesn't cause recompilation any more than -O0 does -- would that provide any worthwhile optimizations? (an intermediate speed-tradeoff option for haskell developers.) Dependency on the details of modules never expected to be recompiled (e.g. base library, or any package not currently being compiled, but those are just heuristics) should be fine.
I have wanted something like this too. I find I can get a similar effect via careful use of NOINLINE pragmas. like I will often have a huge complicated module like module Grin.EvalAnalysis(grinEvalAnalysis) where ... and if I put a {-# NOINLINE grinEvalAnalysis #-} in there then changes to the module don't cause other stuff to be recompiled. John -- John Meacham - ⑆repetae.net⑆john⑈