[Haskell-cafe] Suggestiong for inter-thread communication
Erik de Castro Lopo
mle+hs at mega-nerd.com
Sat Jan 26 11:28:34 CET 2013
Thiago Negri wrote:
> Do you need advice on what? I didn't understand your last phrase.
Well I have data from two sources, stdin and the calculation
thread. If I was doing this in C, I'd probably use a pipe for the
calculation data and then do select on the two file descriptors.
There is a select package:
http://hackage.haskell.org/package/select
but I was wondering if there was a more idiomatic Haskell way
of dealing with inputs from more than one source.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Haskell-Cafe
mailing list