19 Oct
2003
19 Oct
'03
12:03 a.m.
Alle 01:50, domenica 19 ottobre 2003, Ben Escoto ha scritto:
which only reads one character. So how do you write getContents in haskell? Thanks for any insight.
You have to use unsafeInterleaveIO, wich lazily defers the IO action passed as an argument. Look for this function in your documentation, both hugs and ghc have it. V.