Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  string -> bytestring (Christopher Howard)


----------------------------------------------------------------------

Message: 1
Date: Tue, 01 Jan 2013 01:53:44 -0900
From: Christopher Howard <[email protected]>
Subject: [Haskell-beginners] string -> bytestring
To: Haskell Beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130101/e7c5c515/attachment-0001.pgp>

------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 55, Issue 1
****************************************

Reply via email to