packages feed

MicroHs-0.17.4.0 / lib / System / Cmd.hs

module System.Cmd(system) whereimport qualified Prelude(); import MiniPreludeimport Foreign.C.Stringimport System.Exitforeign import ccall "system" c_system :: CString -> IO Intsystem :: String -> IO ExitCodesystem s = do  r <- withCAString s c_system  return $ if r == 0 then ExitSuccess else ExitFailure r