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.