[Haskell-cafe] Re: Top Level TWI's again

Peter Simons simons at cryp.to
Mon Nov 22 20:05:28 EST 2004

Benjamin Franksen writes:

 > If a foreign function (e.g. from a C library) is really
 > pure, then I see no way to tell that to the compiler
 > other than using unsafePerformIO.

What's the problem with importing it with a pure signature?
Like this:

  foreign import ccall unsafe sin :: CDouble -> CDouble


More information about the Haskell-Cafe mailing list