On Fri, Aug 13, 2010 at 1:47 PM, Michael Snoyman <michael@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