[Haskell-cafe] trying to use unix's openFD ..

Galchin Vasili vigalchin at gmail.com
Wed Jan 30 23:05:47 EST 2008


Hello,

       The signature for openFD is

openFd: FilePath
            -> OpenMode
            -> Maybe FileMode
            -> OpenFileFlags
            -> IO Fd

I am currently reading
http://www.haskell.org/ghc/docs/latest/html/libraries/unix/System-Posix-Files.html
and diving down into links but can't find the definition of data type
FileMode. ??? Basically I want to open in O_RDONLY filemode.

Kind regards, Vasili
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080130/36ff8766/attachment-0001.htm


More information about the Haskell-Cafe mailing list