so this one works

instance NFData (V.Vector a) where rnf a = force a `seq` ()


any reason why something like this isn't part of the vector library?


Thanks,
Anatoly


On Apr 17, 2013, at 7:51 AM, anatoly yakovenko <aeyakove...@gmail.com> wrote:

> Thanks,  So now i at least get a compiler error
> 
>    No instance for (NFData (V.Vector Double))
> 
> So how would one define NFData instance for vector?
> 
> 
> On Apr 16, 2013, at 10:51 PM, Andres Löh <and...@well-typed.com> wrote:
> 
>>> NFData Simple where rnf = genericRnf
> 


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to