binary files in haskell
Sat, 27 Jan 2001 18:19:08 +0100
[ 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:
... 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
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:firstname.lastname@example.org D-80538 Muenchen