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

Don Stewart dons at galois.com
Sun Mar 1 01:34:57 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.

Contact the author with a patch :-)

-- Don (who thinks NFData should be sorted out and in base)

More information about the Haskell-Cafe mailing list