Hello Duncan,

Tuesday, June 23, 2009, 6:34:17 PM, you wrote:

>>  > import System.Posix.Files (getFileStatus, isDirectory)

> Yeah, if we could make a standard portable variant of this, that'd be
> great.

isdir <- withFileStatus "isdir?" filename isDirectory


module System.Directory
  withFileStatus :: String -> FilePath -> (Ptr CStat -> IO a) -> IO a
  isDirectory :: Ptr CStat -> IO Bool

-- 
Best regards,
 Bulat                            mailto:bulat.zigans...@gmail.com

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to