aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix.hs
diff options
context:
space:
mode:
authorGravatar simonmar <unknown>2002-09-06 14:34:15 +0000
committerGravatar simonmar <unknown>2002-09-06 14:34:15 +0000
commitad174ba59098b984b69073a721c1976579270fee (patch)
tree1c224369761abc3c0e74b07fd9097077f85ed642 /System/Posix.hs
[project @ 2002-09-06 14:34:15 by simonmar]
Partial rewrite of the POSIX library. The main purpose of this sweep is to remove the last dependencies of the compiler on hslibs. When I've committed the associated compiler changes, only the 'base' package will be required to bootstrap the compiler. Additionally to build GHCi, the 'readline' and 'unix' packages will be required. The new POSIX library lives mostly in libraries/unix, with a few bits required for compiler bootstrapping in libraries/base. The 'base' package is mostly free of hsc2hs code to make bootstrapping from HC files easier, but the 'unix' package will use hsc2hs liberally. The old POSIX library continues to provide more-or-less the same interface as before, although some of the types are more correct now (previously lots of POSIX types were just mapped to Int). The new interface is largely the same as the old, except that some new functionality from the latest POSIX spec has been added (eg. symbolic links). So far, the new POSIX library has signal support, directory/file operations and lots of stuff from unistd.h. The module names are: System.Posix The main dude, exports everything System.Posix.Types All the POSIX types, using the same naming scheme as Foreign.C.Types, Eg. CUid, COff, etc. Many of these types were previously exported by GHC.Posix. Additionally exports the "nicer" names used by the old POSIX library for compatibility (eg. ProcessID == CPid, FileMode == CMode, etc.) All reasonable instances are derived for these types. System.Posix.Signals Signal support, contains most of which was in PosixProcPrim before. The RTS interface to the signal handling support has been rationalised slightly. System.Posix.Directory Directory support, most were in PosixFiles before. System.Posix.Files File operations, most were in PosixFiles before. System.Posix.Unistd (for want of a better name) Miscellaneous bits that mostly come from the unistd.h header file. PosixProcEnv before. The rest of the library should pan out like so: System.Posix.IO System.Posix.Error (maybe) System.Posix.Process System.Posix.Terminal (I've no doubt broken Win32 support, but I'm checking the build at the moment).
Diffstat (limited to 'System/Posix.hs')
-rw-r--r--System/Posix.hs30
1 files changed, 30 insertions, 0 deletions
diff --git a/System/Posix.hs b/System/Posix.hs
new file mode 100644
index 0000000..9d4d244
--- /dev/null
+++ b/System/Posix.hs
@@ -0,0 +1,30 @@
+-----------------------------------------------------------------------------
+-- |
+-- Module : System.Posix
+-- Copyright : (c) The University of Glasgow 2002
+-- License : BSD-style (see the file libraries/base/LICENSE)
+--
+-- Maintainer : libraries@haskell.org
+-- Stability : provisional
+-- Portability : non-portable (requires POSIX)
+--
+-- POSIX support
+--
+-----------------------------------------------------------------------------
+
+module System.Posix (
+ module System.Posix.Types,
+ module System.Posix.Signals,
+ module System.Posix.Directory,
+ module System.Posix.Files,
+ module System.Posix.Unistd,
+ -- module System.Posix.IO,
+ -- module System.Posix.Time,
+ -- module System.Posix.Proc,
+ ) where
+
+import System.Posix.Types
+import System.Posix.Signals
+import System.Posix.Directory
+import System.Posix.Files
+import System.Posix.Unistd