rawfilepath-0.2.4: test/Spec.hs
{-# language OverloadedStrings #-}
import RawFilePath
import qualified Data.ByteString as B
main :: IO ()
main = do
p <- startProcess $ proc "echo" ["hello"] `setStdout` CreatePipe
result <- B.hGetContents (processStdout p)
_ <- waitForProcess p
print (result == "hello\n")