On Fri, Aug 13, 2010 at 1:47 PM, Michael Snoyman <mich...@snoyman.com>wrote:

> Use qualified imports, like so:
>>
>> import qualified Data.ByteString as B
>>
>
> main = B.putStrLn $ B.pack "test"
>>
>> If you want to pack a String into a ByteString, you'll need to import
> Data.ByteString.Char8 instead.
>
>
Very true. That's what I get for using a random example without testing it
first.

-- Johan
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to