deepseq: Add more instances. #50

John Villarreal j0villarreal at
Wed Jan 15 08:59:13 UTC 2020

 I too agree that NFData instances for reference types are more trouble than worth the modest convenience they buy us. We don't have Show instances for reference-like types either and I don't think anybody would be arguing for those either.


    On Wednesday, 15 January 2020, 07:55:40 UTC, Henning Thielemann <lemming at> wrote: 
> David put my thoughts pretty clearly: is it more useful or more 
> confusing? I am also leaning toward more confusing. Hopefully more can 
> weigh in on this.

I also think NFData instances for reference types are more dangerous than 
helpful. Since laziness and strictness account for subtle programming 
mistakes, it is better if GHC tells you that 'rnf tvar' does possibly not 
perform what you expect. I'd even consider to add an instance with a type 
error message to show the user that this instance has been omitted by 
Libraries mailing list
Libraries at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Libraries mailing list