David Carter <david.m.car...@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.


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to