process-conduit appears to hang on windows

Hi, I am trying to use process-conduit on windows, but it appears to hang when using the conduitCmd. Is there a reason why this doesn't work? Thanks for any help, Grant {-# LANGUAGE QuasiQuotes #-} import System.Process.QQ import Data.Conduit import qualified Data.Conduit.Binary as CB import qualified Data.Conduit.List as CL import Data.Conduit.Process import qualified Data.ByteString as B import System.IO main :: IO () main = runResourceT $ [scmd|dir *.txt|] $$ [ccmd|find /i "help"|] =$ CB.sinkHandle stderr main1::IO() main1 = runResourceT $ sourceCmd "dir" $= conduitCmd "find /i \"help\"" $$ CB.sinkHandle stdout

Hi, I am trying to use process-conduit on windows, but it appears to hang when using the conduitCmd. Is there a reason why this doesn't work?
Thanks for any help, Grant
I have made an attempt to create a version of process conduits that appears to work on Windows and Linux. Unfortunately it looks a bit ugly. Does anyone have any input on if this is the right approach and if so, how it can be improved? Thanks for any help. Grant https://gist.github.com/2395361

On Mon, Apr 16, 2012 at 2:50 AM, grant
Hi, I am trying to use process-conduit on windows, but it appears to hang when using the conduitCmd. Is there a reason why this doesn't work?
Thanks for any help, Grant
I have made an attempt to create a version of process conduits that appears to work on Windows and Linux. Unfortunately it looks a bit ugly. Does anyone have any input on if this is the right approach and if so, how it can be improved?
Thanks for any help. Grant
https://gist.github.com/2395361
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
I'm not sure what the original problems were that caused it to hang on Windows, so I can't really speak to that part of the code. The conduit-specific stuff looks good though. Michael

Michael Snoyman
I'm not sure what the original problems were that caused it to hang on Windows, so I can't really speak to that part of the code. The conduit-specific stuff looks good though.
Michael
Thanks for taking a look. I guess windows handling of processes is a lot different than linux. Grant
participants (2)
-
grant
-
Michael Snoyman