[Haskell-cafe] Re: [Haskell] Top Level TWI's again
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Wed Nov 24 07:02:53 EST 2004
Benjamin Franksen <benjamin.franksen at bessy.de> writes:
>> stdin = makeHandle 0
>> stdout = makeHandle 1
>> stderr = makeHandle 2
>>
>> in absolutely pure Haskell, only the things that manipulate them need
>> be in the IO monad.
>
> If they were simple wrappers around the integers, you'd be right and I
> couldn't rightfully object to them being top-level values.
They generally have buffers. And stdin remembers when it has been
closed and refuses to be read further.
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the Haskell-Cafe
mailing list