[Haskell-cafe] Re: I/O interface

Keean Schupke k.schupke at imperial.ac.uk
Thu Jan 13 06:03:52 EST 2005


Ketil Malde wrote:

>Keean Schupke <k.schupke at imperial.ac.uk> writes:
>
>  
>
>>No I meant Channels (from Data.Concurrent)... you can use a structure like:
>>    
>>
>
>Yes, I realize that (although I haven't yet used Data.Concurrent).  It
>seemed to me, though, that streams are related to channels, and that
>it may be possible to use the same (or a slightly more generalized)
>abstraction?  (I should perhasp experiment a bit with concurrent
>programming and streams, and it'll surely become apparent how and why
>I'm mistaken :-) 
>
>-kzm
>  
>
I don't necessarily think you are mistaken, but why re-invent the wheel
when channels are almost ideal for the job (inter-thread FIFO's)...

At the end of the day streams between processes are channels... in effect
(non seekable) streams are extending channels to IO.

    Keean.


More information about the Haskell-Cafe mailing list