[Haskell-cafe] Re: Data.ByteString woes

Achim Schneider barsoap at web.de
Wed Apr 15 07:39:00 EDT 2009

David Carter <david.m.carter at gmail.com> wrote:

> I then thought I might work around the problem by converting lazy
> ByteStrings to strict ones in order to do the regex match.
strictBS :: LB.ByteString -> B.ByteString
strictBS = B.concat . LB.toChunks

lazyBS :: B.ByteString -> LB.ByteString
lazyBS = LB.fromChunks . pure

(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.

More information about the Haskell-Cafe mailing list