
1 Jan
2013
1 Jan
'13
7:03 a.m.
On Tue, Jan 01, 2013 at 01:53:44AM -0900, Christopher Howard wrote:
Hi. I'm trying to use pcre-light in a small text-manip app. However, the module seems to want the incoming text data as a ByteString, whereas I in my child-like naivety am taking the data from stdin as Strings. After searching around, I tried using the fromString function from Data.ByteString.UTF8 to convert from String to ByteString; but all I get is:
code: -------- Couldn't match expected type `ByteString' with actual type `bytestring-0.9.2.1:Data.ByteString.Internal.ByteString' --------
So I'm not sure what to do.
Is it a mismatch between strict and lazy bytestrings? iustin