Hacker News new | ask | show | jobs
by lmm 479 days ago
With dependent types, if you really want to. (Or just with conventional generics or typeclasses, the difference between a ring and a monoid will show, and that's enough for many cases).