Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Out of curiosity, is there a particular downside to deriving them if the type permits it?


I'd imagine you're unnecessarily polluting the type with unused functionality, no?

(not sure if this is true, perhaps GHC is smart about it).

If nothing else, superfluous derives would seem to distract/obfuscate your intent.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: