Ah, thanks Don, Brandon,

I looked at this but neglected to read through and understand the example enough.

Thanks for the tips, they're a great help.


Don Stewart wrote:
jamie.love:
bmpHeader = runPut $ do
        put 'B'
        put 'M'
        put (0  :: Int32)
        put (0  :: Int32)
        put (14 :: Int32)

Yields the lazy bytestring,

    "BM\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\SO"

--
Jamie Love
Senior Consultant
Aviarc Australia
Mobile: +61 400 548 048



------------------------------------------------------------ This message has been scanned for viruses and dangerous content by MailScanner and is believed to be clean.

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

Reply via email to