Update Hexstring for binary #1
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ toBytes (HexString bs) = BS16.decodeLenient bs
|
|||
|
||||
-- | Reads a human-readable hex string into a `HexString`
|
||||
fromText :: T.Text -> HexString
|
||||
fromText = hexString . TE.encodeUtf8
|
||||
fromText = hexString . BS16.decodeLenient . TE.encodeUtf8
|
||||
|
||||
-- | Access to a 'T.Text' representation of the 'HexString'
|
||||
toText :: HexString -> T.Text
|
||||
|
|
Loading…
Reference in a new issue