cvs commit: fptools/ghc/lib/std Directory.hsc

Reuben Thomas rrt@glass.cse.ogi.edu
Wed, 14 Feb 2001 04:36:07 -0800


rrt         2001/02/14 04:36:07 PST

  Modified files:
    ghc/lib/std          Directory.hsc 
  Log:
  Make isDirectory work on Windows (dirent.d_name is a char *, not a char []);
  also getDirectoryContents (readdir helpfully sets errno to ENOENT when we've
  read the last entry, rather than leaving it at 0).
  
  Windows is *not* the way of the future.
  
  Revision  Changes    Path
  1.6       +15 -5     fptools/ghc/lib/std/Directory.hsc