[Haskell-cafe] missing support for NFData in uvector package

Manlio Perillo manlio_perillo at libero.it
Sat Feb 28 21:10:52 EST 2009

Today I noticed that there is no instance declaration for NFData, in the 
uvector package.

The definition is quite simple:

instance NFData a => NFData (UArr a) where
     -- NOTE: UArr is already strict
     rnf array = array `seq` ()

but it is important.

In a my program I was using a tuple of two arrays, and plain `seq` did 
not worked.

Regards  Manlio Perillo

More information about the Haskell-Cafe mailing list