haskell - further cleanup of hexadecimal

Probably jumped the gun on that other PR :) This just makes it shorter and more clear.