
You can find an example at:
graphics.cs.ucdavis.edu/~sdillard/newtype-maybe-bug.tar.gz
Here's my session with it:
ghc --make -O2 -DFAST Test
time ./Test +RTS -tstderr
<
stefanor:
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