[Pkg-haskell-commits] [SCM] haskell-testpack branch, master, updated. debian/1.0.2-1-4-gb0d6b36
John Goerzen
jgoerzen at complete.org
Fri Apr 23 15:02:08 UTC 2010
The following commit has been merged in the master branch:
commit d97b3a87aaaf196f5f343518500b6f6c79b09f5a
Author: John Goerzen <jgoerzen at complete.org>
Date: Mon Aug 15 23:11:08 2005 +0100
Added warning about lazy items
diff --git a/MissingH/IO/HVFS/Utils.hs b/MissingH/IO/HVFS/Utils.hs
index e9d223a..44f1397 100644
--- a/MissingH/IO/HVFS/Utils.hs
+++ b/MissingH/IO/HVFS/Utils.hs
@@ -68,6 +68,13 @@ recurseDir fs x = recurseDirStat fs x >>= return . map fst
{- | Like 'recurseDir', but return the stat() (System.Posix.Files.FileStatus)
information with them. This is an optimization if you will be statting files
yourself later.
+
+The items are returned lazily.
+
+WARNING: do not change your current working directory until you have consumed
+all the items. Doing so could cause strange effects.
+
+Alternatively, you may wish to pass an absolute path to this function.
-}
recurseDirStat :: HVFS a => a -> FilePath -> IO [(FilePath, HVFSStatEncap)]
--
haskell-testpack
More information about the Pkg-haskell-commits
mailing list