deepseq: instance NFData (a -> b)

Niklas Hambüchen mail at nh2.me
Sun May 1 15:07:31 UTC 2016


I wound find it interesting to learn what exactly will break when this
instance is removed / what feature motivated the addition of the einstance.

I'm taking a guess here, maybe it's Generics based deriving?

    data D = D { something :: Int, somethingElse :: Int -> String }
      deriving Generic

    deriving instance NFData D

Is it this?


More information about the Libraries mailing list