The functions rawSystem, withArgs and withProgName aren't supported
by Hugs yet.
module System.Cmd
( system, -- :: String -> IO ExitCode
+#ifndef __HUGS__
rawSystem, -- :: String -> IO ExitCode
+#endif
) where
import Prelude
n -> return (ExitFailure n)
foreign import ccall unsafe "systemCmd" primSystem :: CString -> IO Int
-#endif /* __HUGS__ */
{- |
The same as 'system', but bypasses the shell. Will behave more portably between
foreign import ccall unsafe "rawSystemCmd" primRawSystem :: CString -> IO Int
+#endif /* __HUGS__ */
getArgs, -- :: IO [String]
getProgName, -- :: IO String
getEnv, -- :: String -> IO String
+#ifndef __HUGS__
withArgs,
withProgName,
+#endif
) where
import Prelude
foreign import ccall unsafe "getenv"
c_getenv :: CString -> IO (Ptr CChar)
-#endif /* __HUGS__ */
{-|
@withArgs args act@ - while executing action @act@, have 'System.getArgs'
foreign import ccall unsafe "setProgArgv"
setArgsPrim :: Int -> Ptr CString -> IO ()
+#endif /* __HUGS__ */