[Haskell-cafe] trying to go from FFT type to Vector.Storable

Roman Cheplyaka roma at ro-che.info
Tue May 12 09:23:10 UTC 2015


On 12/05/15 11:43, Henk-Jan van Tuyl wrote:
> You could use something like:
>   toDouble :: FFTWReal r => r -> Double
>   toDouble = id

I don't think this is going to typecheck.

You probably had something like this in mind:

  toDouble :: (forall r . FFTWReal r => r) -> Double
  toDouble d = d

Here's a simpler way to do that:

  toDouble :: Double -> Double
  toDouble = id

Roman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150512/0708498c/attachment.sig>


More information about the Haskell-Cafe mailing list