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. Re:  problem with lazy IO (Dennis Raddle)


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

Message: 1
Date: Wed, 9 Nov 2011 17:04:12 -0800
From: Dennis Raddle <[email protected]>
Subject: Re: [Haskell-beginners] problem with lazy IO
To: Daniel Fischer <[email protected]>
Cc: [email protected]
Message-ID:
        <cakxlvoreyhzoxqn5gf4potuj-bsmkll-c7pzwueu5om2tfa...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Ah yes, so my first problem was not using the Char8 version, so 'unpack'
was getting me [Word8] instead of [Char]


On Wed, Nov 9, 2011 at 3:57 PM, Daniel Fischer <
[email protected]> wrote:

> On Thursday 10 November 2011, 00:48:20, Dennis Raddle wrote:
> > It was a pain putting "map (chr . fromIntegral)" in front of everything
> > to get regular strings.
>
> import qualified Data.ByteString.Char8 as C
>
>  foo <- C.unpack `fmap` C.readFile whichever
>
> You don't need to put it *everywhere*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20111109/bff7dcb8/attachment-0001.htm>

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

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


End of Beginners Digest, Vol 41, Issue 15
*****************************************

Reply via email to