IO in the middle

2011-11-17 Thread Serge D. Mechveliani
People, is it possible to arrange a connected output and input (with something like a socket) in a middle of the Haskell function? Consider the example of sorting an integer list: sortInt :: [Int] - [Int] sortInt js = let callString = sortForeign( ++ (show js) ++ )

Re: IO in the middle

2011-11-17 Thread Donn Cave
I think you're talking about RPC, Remote Procedure Call. A search for that term turns up http://www.haskell.org/haskellwiki/HaXR For things like this, it would make sense to subscribe to haskell-cafe, and post questions there - it's a much more active list that's devoted to ideas about Haskell