[Haskell-cafe] Profiling nested case

Chaddaï Fouché chaddai.fouche at gmail.com
Fri Jul 18 09:54:12 EDT 2008

2008/7/12 Mitar <mmitar at gmail.com>:
> So that I can easily change the type everywhere. But it would be much
> nicer to write:
> data Quaternion a = Q !a !a !a !a deriving (Eq,Show)
> Only the performance of Num instance functions of Quaternion is then
> quite worse.

You can probably use a specialization pragma to get around that.


More information about the Haskell-Cafe mailing list