I need to manipulate the binary encoding as '0'
and '1'
of simple strings given as input, using ascii 7-bits.
For the encoding I have used the function Data.ByteString.Lazy.Builder.string7 :: String -> Builder
However, I have not found a way to convert back the resulting Builder object into a string of '0'
and '1'
. Is it possible ? Is there another way ?
Subsidiary question: And if I wanted it in hexadecimal form as text ?