Open Icelandjack opened 2 years ago
As well as
newtype Rnf1 f a = Rnf1 (f a)
instance (NFData1 f, NFData a) => NFData (Rnf1 f a) where
rnf (Rnf1 as) = rnf1 as
You want a newtype instance that will prevent NFData
from fully evaluating it?
I think the nf
package may have some stuff like that.