[Haskell-beginners] type class for custom numeric types