jxxcarlson/hex/1.0.0

NOTE: the latest version is 4.0.1

Hex

The function call hex someBytes gives a hexadecimal view of the contents of someBytes : Bytes.

hex : Bytes -> Maybe String

encodeString "Hello" |> hex Just "48656C6C6F" : Maybe String

encodeString : String -> Bytes
 > encodeString "$20"
<3 bytes> : Bytes.Bytes
decodeString : Bytes -> Maybe String

encodeString "$20$" |> decodeString Just "$20$" : Maybe String