[vector] #54: Missing NFData instances for vector types

vector vector at projects.haskell.org
Mon May 23 09:12:47 BST 2011


#54: Missing NFData instances for vector types
------------------------+---------------------------------------------------
Reporter:  hvr          |        Owner:     
    Type:  enhancement  |       Status:  new
Priority:  major        |    Milestone:     
 Version:  0.7          |   Resolution:     
Keywords:               |  
------------------------+---------------------------------------------------

Comment(by hvr):

 Fyi, In my code I'm currently using

 {{{
 #!hs
 instance VU.Unbox a => NFData (VU.Vector a)

 instance NFData a => NFData (V.Vector a) where
   rnf v = V.foldl' (\x y -> y `deepseq` x) () v
 }}}

 (of which I hope that it's correct)

-- 
Ticket URL: <http://trac.haskell.org/vector/ticket/54#comment:1>
vector <http://trac.haskell.org/vector>
Package vector


More information about the vector mailing list