Talk:Bitmap/Write a PPM file

From Rosetta Code
Revision as of 00:23, 22 December 2012 by rosettacode>Avillen (Created page with "'''Haskell code wrong?''' Binary PPM files should have the header "P6", and PPM files in plain ASCII should have the header "P3". However, the Haskell code reads a file in ASC...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Haskell code wrong? Binary PPM files should have the header "P6", and PPM files in plain ASCII should have the header "P3". However, the Haskell code reads a file in ASCII but checks if its header is "P6", and complains if the file data is raw bytes. That should be corrected.