packages feed

rawfilepath-0.1.1: test/Spec.hs

{-# language OverloadedStrings #-}

import System.Process.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")