
2 Nov
2011
2 Nov
'11
7:31 p.m.
On 11/2/11 9:24 AM, Jean-Marie Gaillourdet wrote:
Hi Eugene,
did you try using the SPECIALIZE pragma? It is part of the Haskell 98 and Haskell 2010 specifications.
The problem with SPECIALIZE is that you still have to give a parametric definition for the function, whereas the whole point of specializing realToFrac is in order to use non-parametric definitions like the built-in machine ops. -- Live well, ~wren