[project @ 2004-08-21 10:56:59 by panne]
[haskell-directory.git] / System / Directory.hs
index 9f8e38e..096712c 100644 (file)
@@ -24,6 +24,8 @@ module System.Directory
     , getDirectoryContents      -- :: FilePath -> IO [FilePath]
     , getCurrentDirectory       -- :: IO FilePath
     , setCurrentDirectory       -- :: FilePath -> IO ()
+
+    -- * Pre-defined directories
     , getHomeDirectory
     , getAppUserDataDirectory
     , getUserDocumentsDirectory
@@ -61,6 +63,7 @@ module System.Directory
 
 #ifdef __NHC__
 import Directory
+import System (getEnv)
 getHomeDirectory :: IO FilePath
 getHomeDirectory = getEnv "HOME"
 getAppUserDataDirectory :: String -> IO FilePath
@@ -699,7 +702,7 @@ instead.
 On Unix, 'getUserDocumentsDirectory' returns the value of the @HOME@
 environment variable.  On Windows, the system is queried for a
 suitable path; a typical path might be 
-@C:/Documents and Settings/user/My Documents@.
+@C:\/Documents and Settings\/user\/My Documents@.
 
 The operation may fail with: