
1 Jan
2013
1 Jan
'13
5:53 a.m.
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. -- frigidcode.com