Christopher Howard
2013-01-01 10:53:44 UTC
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.
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.
--
frigidcode.com
frigidcode.com