[Haskell-cafe] Replacing stdin from within Haskell
semanticphilosopher at gmail.com
Thu Jun 9 18:16:18 CEST 2011
That is what I thought. I'll stick with what I'm doing at present which is to use temporary files - don't want to get into separate processes which I then have to co-ordinate.
On 9 Jun 2011, at 17:01, Brandon Allbery wrote:
> On Thu, Jun 9, 2011 at 07:40, Neil Davies <semanticphilosopher at gmail.com> wrote:
>> Anyone out there got an elegant solution to being able to fork a haskell thread and replace its 'stdin' ?
> File descriptors/file handles are per process, not per thread, on
> (almost?) every OS ghc supports. You'll need to create a full
More information about the Haskell-Cafe