[Haskell-cafe] Re: Importing Data.Char speeds up ghc around 70%

Neil Mitchell ndmitchell at gmail.com
Sat Dec 22 14:59:22 EST 2007


> > What is happening here ? Does importing Data.Char shadow (in a hidden way) some
> > timeworn types or methods in the Prelude ? If so, ghc might be still faster
> > than it looks now.
> There is absolutely no way this could be correct behavior.

Not true - importing an additional (but apparently unused) module can
introduce new rules, pragmas and instances into scope, which can
effect the optimisation. However, in this case, it looks like a bug -
in either GHC or Joost's testing.



More information about the Haskell-Cafe mailing list