Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Represents a Hex string. Guarantees that all characters it contains are valid hex characters.
Instances
hexString :: ByteArray ba => ba -> Either String HexString Source #
Smart constructor which trims '0x' and validates length is even. Works with any mixed casing of characters: `hexString "0xAA" == hexString "0xAa" == hexString "0xaA" == hexString "0xaa"`