Keith Wansbrough wrote:
> [...]
> :l IO
> openFile "thefile" WriteMode >>= \ hdl -> hPutStrLn hdl "hi" >> hClose hdl
>
> yields a file "thefile" containing a single newline, but not the text
> "hi". [...]
I can reproduce this with an even shorter example:
:l IO
hPutStr stdout ":-P"
There's no output at all and using hPutStrLn instead only outputs a
newline. Buffering bug?
Cheers,
Sven
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne