Improve docs for GHC.IO.FD.openFile
authorSimon Marlow <marlowsd@gmail.com>
Fri, 1 Apr 2011 11:15:50 +0000 (12:15 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 15 Apr 2011 08:22:10 +0000 (09:22 +0100)
GHC/IO/FD.hs

index 012bb73..1730885 100644 (file)
@@ -139,9 +139,13 @@ writeBuf' fd buf = do
 -- opening files
 
 -- | Open a file and make an 'FD' for it.  Truncates the file to zero
--- size when the `IOMode` is `WriteMode`.  Puts the file descriptor
--- into non-blocking mode on Unix systems.
-openFile :: FilePath -> IOMode -> Bool -> IO (FD,IODeviceType)
+-- size when the `IOMode` is `WriteMode`.
+openFile
+  :: FilePath -- ^ file to open
+  -> IOMode   -- ^ mode in which to open the file
+  -> Bool     -- ^ open the file in non-blocking mode?
+  -> IO (FD,IODeviceType)
+
 openFile filepath iomode non_blocking =
   withFilePath filepath $ \ f ->