-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Fast and safe representation of a hex string
--
@package hexstring
@version 0.11.0
module Data.HexString
-- | Represents a Hex string. Guarantees that all characters it contains
-- are valid hex characters.
data HexString
-- | Smart constructor which validates that all the text are actually
-- hexadecimal characters.
hexString :: ByteString -> HexString
-- | Converts a Binary to a HexString value
fromBinary :: Binary a => a -> HexString
-- | Converts a HexString to a Binary value
toBinary :: Binary a => HexString -> a
-- | Reads a ByteString as raw bytes and converts to hex
-- representation. We cannot use the instance Binary of ByteString
-- because it provides a leading length, which is not what we want when
-- dealing with raw bytes.
fromBytes :: ByteString -> HexString
-- | Access to the raw bytes in a ByteString format.
toBytes :: HexString -> ByteString
-- | Access to a Text representation of the HexString
toText :: HexString -> Text
instance Show HexString
instance Eq HexString
instance Ord HexString