[Haskell-cafe] Writing binary files?

Hal Daume III hdaume at ISI.EDU
Sat Sep 11 11:52:33 EDT 2004

There's a Binary module that comes with GHC that you can get somewhere (I 
believe Simon M wrote it).  I have hacked it up a bit and added support 
for bit-based writing, to bring it more in line with the NHC module.  
Mine, with various information, etc., is available at:


On Sat, 11 Sep 2004, Ron de Bruijn wrote:

> Hi,
> I would like to write and read binary files in
> Haskell. I saw the System.IO module, but you need a
> (Ptr a) value for using that, and I don't need
> positions. I only want to read a complete binary file
> and write another binary file. 
> In 2001 somebody else came up with the same subject,
> but then there wasn't a real solution. Now, 3 years
> later, I can imagine there's *something*. 
> What's that *something*?
> Regards, 
>   Ron
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

 Hal Daume III                                   | hdaume at isi.edu
 "Arrest this man, he talks in maths."           | www.isi.edu/~hdaume

More information about the Haskell-Cafe mailing list