Hello,<br><br>I&#39;m trying to upgrade a library from 6.6 to 6.10, but has run into a problem where a Internal.ByteString is returned instead of a normal ByteString. The library uses bRead in BEncode library, but that function&#39;s input type has changed from ByteString to Internal.ByteString. I think the cause of the problem is the functions in ByteString that uses functions in ByteString.Internal.<br>
<br>Data.BEncode.bRead                         uses Data.BEncode.Lexer.lexer<br>Data.BEncode.Lexer.lexer                  uses Data.ByteString.Lazy.Char8.toChunks<br>Data.ByteString.Lazy.Char8.toChunks uses Data.ByteString.Lazy.Internal.foldrChunk<br>
<br>foldrChunk :: (Internal.ByteString -&gt; a -&gt; a) -&gt; Internal.ByteString -&gt; a<br><br>Is there any way to avoid getting a Internal.ByteString or convert it to a normal ByteString?<br><br>Pauline<br>