[Haskell-beginners] Idiomatic way to avoid type class instance definitions for Int and Integer separately