memory-hexstring-1.0.0.0: Hex-string type for Haskell Web3 library.
CopyrightAleksandr Krupenkin 2016-2021
LicenseApache-2.0
Maintainermail@akru.me
Stabilityexperimental
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Data.ByteArray.HexString.Convert

Description

From/to hex conversion functions.

Synopsis

Documentation

class ToHex a where Source #

Convert type into it's hex representation.

Methods

toHex :: a -> HexString Source #

class FromHex a where Source #

Convert hex string into a type or return an error.

fromBytes :: ByteArrayAccess ba => ba -> HexString Source #

Reads a raw bytes and converts to hex representation.

toBytes :: ByteArray ba => HexString -> ba Source #

Access to the raw bytes of HexString.

toText :: HexString -> Text Source #

Access to a Text representation of the HexString

Orphan instances