I was wondering if anyone here has a solution for writing binary files that works in hugs and ghc that doesn't require getting libs. I looked at this page: http://haskell.cs.yale.edu/ghc/docs/latest/set/sec-ioexts.html and the haskell.org libraries page and I didn't see anything. the ghc documentation didn't provide any examples so I was unable to figure out how to write a binary file.