[Haskell-cafe] Ridiculously slow FFI, or cairo binding?

wren ng thornton wren at freegeek.org
Thu Nov 3 00:31:59 CET 2011


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



More information about the Haskell-Cafe mailing list