
17 Apr
2013
17 Apr
'13
1:51 a.m.
Hi Anatoly. I don't think that the normal deepseq package currently provides generic deriving at all. This doesn't have anything to do with vector. There's a default implementation for rnf that defines it to be seq, which is not what you want in this case, of course. There are additional packages that implement such functionality, though. By using deepseq-generics, you can import Control.DeepSeq.Generics and then define
instance NFData Simple where rnf = genericRnf
Cheers, Andres -- Andres Löh, Haskell Consultant Well-Typed LLP, http://www.well-typed.com