You can use the Integral class (when compiling, the instance gets converted to an extra dictionary argument, if you never use the instance the dictionary will be unreachable)
But Integer is really hard to avoid in general, for example the Show instance for Double depends on it.
But Integer is really hard to avoid in general, for example the Show instance for Double depends on it.