John,
Thanks for the reply.
In this case, would the body of my function run in a separate thread
via forkProcess (that's what is needed, maybe I didn't make it clear)?
In my previous project, I had to do like this (probably not very
portable, at least requires System.Posix):
Dimitry Golubovsky wrote:
John,
Thanks for the reply.
In this case, would the body of my function run in a separate thread
via forkProcess (that's what is needed, maybe I didn't make it clear)?
No; at least not automatically. The idea is that a function that is
Channel - IO Channel
On Sat, Jun 13, 2009 at 4:01 PM, John Goerzen jgoer...@complete.org wrote:
Dimitry Golubovsky wrote:
where hscpid corresponds to a process that runs a Haskell function
(hsffigMain :: a - b - c - IO ()) defined within the same program,
and gccpid runs an external program (gcc), and they
On Sat, Jun 13, 2009 at 05:06:41PM -0700, Jason Dagit wrote:
On Sat, Jun 13, 2009 at 4:01 PM, John Goerzen jgoer...@complete.org wrote:
Dimitry Golubovsky wrote:
where hscpid corresponds to a process that runs a Haskell function
(hsffigMain :: a - b - c - IO ()) defined within the
John,
On Sat, Jun 13, 2009 at 7:01 PM, John Goerzenjgoer...@complete.org wrote:
where hscpid corresponds to a process that runs a Haskell function
(hsffigMain :: a - b - c - IO ()) defined within the same program,
and gccpid runs an external program (gcc), and they are piped
together. I am
Dimitry Golubovsky wrote:
I'll try to write a wrapper for a forked process inside a Channel -
IO Channel typed function.
Your best bet would be to start with these instances in HSH.Command:
instance ShellCommand (String, [String]) where
instance ShellCommand String where
and the
Dimitry Golubovsky wrote:
John all,
I use HSH in my project where several external programs and Haskell
functions need to be piped together: HSH is of great help here.
I however came across the situation when one of pipe-connected
functions has signature IO (), yet it reads from stdin*