[ OK, let's see if I get a typo-free mail out of the door *this* time... :-] Timmy Douglas wrote:
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 dont' know exactly about the current status of Hugs' libs, but I fear the answer to your question is "no".
I looked at this page: http://haskell.cs.yale.edu/ghc/docs/latest/set/sec-ioexts.html
... and that was exactly the right place, see section "Bulk transfers" hGetBuf :: Handle -> Addr -> Int -> IO Int hGetBufFull :: Handle -> Addr -> Int -> IO Int hPutBuf :: Handle -> Addr -> Int -> IO Int hPutBufFull :: Handle -> Addr -> Int -> IO ()
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.
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
-- Sven Panne Tel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:sven.panne@informatik.uni-muenchen.de D-80538 Muenchen http://www.informatik.uni-muenchen.de/~Sven.Panne