[Haskell-cafe] Strange type behavior in GHCi 6.4.2

Kirsten Chevalier catamorphism at gmail.com
Sat Dec 30 10:23:09 EST 2006

On 12/30/06, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
> Hello Kirsten,
> Friday, December 29, 2006, 6:30:22 PM, you wrote:
> > I suggest *not* using these pragmas unless a combination of profiling
> > and reading intermediate code dumps suggests that foo -- and its
> > un-specialized nature -- is truly a bottleneck.
> it's a matter of taste - and experience. may be it's simpler to add a huge
> number of INLINE pragmas than to profile and especially read code dumps?

I agree that profiling and reading code dumps can be daunting, but in
my opinion, it's better to learn these skills once and for all (and
unfortunately, these skills are still necessary given the current
level of Haskell technology) and gain insight into how to use the
compiler to get the code you want than to practice cargo-cult
programming in the form of wanton pragmas.


Kirsten Chevalier* chevalier at alum.wellesley.edu *Often in error, never in doubt
"Religion is just a fancy word for the Stockholm Syndrome."
-- lj user="pure_agnostic"

More information about the Haskell-Cafe mailing list