Hacker News new | ask | show | jobs
by gizmo686 4290 days ago
You could also define a typeclass Intable, and a function (Intable a) => a -> Int, which will work on any type that implements Intable.