import Prelude
+#ifndef __HUGS__
import Foreign
import Foreign.C
import Control.Monad
+#endif
#ifdef __GLASGOW_HASKELL__
import GHC.IOBase
#endif
+#ifdef __HUGS__
+import Hugs.System
+#endif
+
-- ---------------------------------------------------------------------------
-- getArgs, getProgName, getEnv
-- Computation `getArgs' returns a list of the program's command
-- line arguments (not including the program name).
+#ifndef __HUGS__
getArgs :: IO [String]
getArgs =
alloca $ \ p_argc ->
foreign import ccall unsafe "getenv"
c_getenv :: CString -> IO (Ptr CChar)
+#endif /* __HUGS__ */