ref: b1b1dec53c14e3c4778d8b795f6f9d981de7302d
dir: /lib/System/Process.hs/
module System.Process(callCommand) where
import Prelude
import Foreign.C.String
foreign import ccall "system" systemc :: CString -> IO Int
callCommand :: String -> IO ()
callCommand cmd = do
r <- withCAString cmd systemc
when (r /= 0) $
error $ "callCommand: failed " ++ show r