- hexalize :: Num n => n -> Word8 -> n
- lazy_hex :: Num n => ByteString -> n
- strict_hex :: Num n => ByteString -> n
- class Num n => Hexable b n where
- hex :: b -> n
Documentation
hexalize :: Num n => n -> Word8 -> nSource
Folds a byte into a number if the byte is a hexadecimal digit; otherwise the byte is ignored.
lazy_hex :: Num n => ByteString -> nSource
Lazy fold with hexalize
.
strict_hex :: Num n => ByteString -> nSource
Strict fold with hexalize
.
class Num n => Hexable b n whereSource
Types that can be read from hexadecimal strings. Characters that are not
hexadecimal digits are skipped over. One pleasant consequence of this is
that a leading 0x
is simply ignored.