[Haskell-beginners] is there a better way to ask for a hex formatted number?

Sean Perry shaleh at speakeasy.net
Fri Apr 29 23:11:01 CEST 2011

I am using this currently:

makeHex n = "0x" ++ map toUpper (showHex n "") -- gives me 0xFF for example

I know i can use printf but I am not sending this to output when I am doing the formatting.

More information about the Beginners mailing list