[Haskell-cafe] Derving NFData via Generics from a type that has a vector doesn't work. (was trying to understand out of memory exceptions)

Andres Löh andres at well-typed.com
Wed Apr 17 17:05:14 CEST 2013

Hi again.

> instance NFData (V.Vector a) where rnf a = force a `seq` ()
> any reason why something like this isn't part of the vector library?

Quoting from the Changelog at http://hackage.haskell.org/package/vector :

Changes in version 0.10

   *  NFData instances

So it's there, and even in the current Haskell Platform.


Andres Löh, Haskell Consultant
Well-Typed LLP, http://www.well-typed.com

More information about the Haskell-Cafe mailing list