[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:00:25 UTC 2010
The following commit has been merged in the master branch:
commit 3207ff456bd42d91747088fa3780435a6ecc4740
Author: John Goerzen <jgoerzen at complete.org>
Date: Fri Jul 22 21:22:53 2005 +0100
Updated compat info
diff --git a/MissingH.cabal b/MissingH.cabal
index b4def8f..3d878d0 100644
--- a/MissingH.cabal
+++ b/MissingH.cabal
@@ -44,7 +44,7 @@ Exposed-Modules: MissingH.IO, MissingH.IO.Binary, MissingH.List,
MissingH.IO.HVFS.Combinators,
MissingH.IO.HVFS.InstanceHelpers,
MissingH.IO.HVFS.Utils,
- MissingH.IO.HVIO, MissingH.IO.StatCompat,
+ MissingH.IO.HVIO, MissingH.IO.StatCompat, MissingH.IO.WindowsCompat,
MissingH.Email.Parser,
MissingH.Debian, MissingH.Debian.ControlParser,
MissingH.MIMETypes,
diff --git a/MissingH/IO/WindowsCompat.hs b/MissingH/IO/WindowsCompat.hs
index 16f3423..916ba96 100644
--- a/MissingH/IO/WindowsCompat.hs
+++ b/MissingH/IO/WindowsCompat.hs
@@ -34,11 +34,27 @@ See also "MissingH.IO.StatCompat", which this module re-exports.
Copyright (c) 2005 John Goerzen, jgoerzen\@complete.org
+On non-Windows platforms, this module does nothing.
+
+On Windows, it re-exports "MissingH.IO.StatCompat". It also provides various
+file type information modes that are otherwise in "System.Posix.Types" and
+a rudimentary implemention of getFileStatus that emulates the Posix call
+to stat(2).
+
+Common usage might be like this:
+
+>import System.Posix.Types
+>#ifdef mingw32_HOST_OS
+>import MissingH.IO.WindowsCompat
+>#else
+>import System.Posix.Files
+>#endif
+
-}
module MissingH.IO.WindowsCompat
#ifndef mingw32_HOST_OS
-where ()
+where
#else
(module MissingH.IO.StatCompat, module MissingH.IO.WindowsCompat)
where
--
haskell-testpack
More information about the Pkg-haskell-commits
mailing list