diff --git a/Codec/Digest/SHA/Misc.hs b/Codec/Digest/SHA/Misc.hs
--- a/Codec/Digest/SHA/Misc.hs
+++ b/Codec/Digest/SHA/Misc.hs
@@ -10,5 +10,5 @@
 showBSasHex bs = showHex (B.index bs 0) $ showBSasHex (B.drop 1 bs)
 
 showHex :: Word8 -> String -> String
-showHex n rest | n < 0x10 = Numeric.showHex n ('0' : rest)
+showHex n rest | n < 0x10 = Numeric.showHex 0 (Numeric.showHex n rest)
 showHex n rest = Numeric.showHex n rest
diff --git a/SHA2.cabal b/SHA2.cabal
--- a/SHA2.cabal
+++ b/SHA2.cabal
@@ -1,7 +1,7 @@
 Name: SHA2
 Synopsis: Fast, incremental SHA hashing for bytestrings
 Description: A zero-copy binding to Aaron Gifford's SHA implementation, including a copy of that implementation
-Version: 0.2.3
+Version: 0.2.4
 License: BSD3
 License-file: COPYING
 Copyright: Copyright (c) 2009 University of Tromsø
