missing support for NFData in uvector package

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

manlio_perillo:
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)
participants (2)
-
Don Stewart
-
Manlio Perillo