ref: fd5e674fa65ff997cf004a5c4a0bf17fbff68340
dir: /lib/System/Process.hs/
module System.Process(callCommand) where
import Prelude
import Control.Monad(when)
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