Copyright | Alexander Krupenkin 2018 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
Hex string data type and useful functions.
Documentation
Represents a Hex string. Guarantees that all characters it contains are valid hex characters.
Instances
Eq HexString Source # | |
Ord HexString Source # | |
Defined in Data.ByteArray.HexString | |
Show HexString Source # | |
IsString HexString Source # | |
Defined in Data.ByteArray.HexString fromString :: String -> HexString # | |
Semigroup HexString Source # | |
Monoid HexString Source # | |
ToJSON HexString Source # | |
Defined in Data.ByteArray.HexString | |
FromJSON HexString Source # | |
ByteArray HexString Source # | |
ByteArrayAccess HexString Source # | |
hexString :: ByteArray ba => ba -> Either String HexString Source #
Smart constructor which trims '0x' and validates length is even.
fromBytes :: ByteArrayAccess ba => ba -> HexString Source #
Reads a raw bytes and converts to hex representation.