[Haskell-cafe] Re: Resending: MissingH: profiler support?

John Goerzen jgoerzen at complete.org
Fri Jan 12 10:25:17 EST 2007


On Fri, Jan 12, 2007 at 08:10:47AM -0500, Gregory Wright wrote:
> >-- John
> 
> Does MissingH's cabal file have a line
> 
> 	Ghc-Prof-Options:       -prof -auto-all

No, it doesn't.  None of my Cabal files do.  Could anyone confirm if
this fixes it?

> The rhs of the option is added to compiler command line when the
> --enable-library-profiling option is included to configure.  Without  
> this,
> the --enable-library-profiling switch doesn't do anything.  (Arguably a
> bug that cabal silently does nothing instead of reporting an error.)

I'd argue that Cabal should make this a default.  It seems silly to have
to add this boilerplate code to every cabal file out there just to have
a sensible default.

Thanks for the info.

-- John


More information about the Haskell-Cafe mailing list