newtypes and optimization

Don Stewart dons at
Wed Dec 12 15:48:43 EST 2007

> On Wed, Dec 12, 2007 at 11:02:15AM -0700, Scott Dillard wrote:
> > with strictness annotations and INLINEs for everything. I also tried automatic
> > newtype deriving, with no luck. Why does a newtype defeat so much of the
> > optimization?
> > 
> > Thanks,
> > Scott
> (Not a GHC developer, but someone fairly familiar with how the Simons
> work)
> What version of GHC are you using?  The implementation of newtypes was
> completely redone in the 6.7.x period.
> Do you have a fairly small complete working example?  If so, link to or
> attach a tarball - will make their jobs much easier.
> Stefan

Yeah, this sounds like maybe a bug, or maybe something wrong. We need to
investigate! An example please.

-- Don

More information about the Glasgow-haskell-users mailing list