[Haskell-cafe] process-conduit appears to hang on windows
grant
thelff at hotmail.com
Wed Apr 11 04:41:54 CEST 2012
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
More information about the Haskell-Cafe
mailing list