[commit: packages/unix] master, safe710fixes, safe710fixes-again, safefixes710again: Use import list for `Data.Time.Clock.POSIX` (e865808)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 15:49:57 UTC 2015


Repository : ssh://git@git.haskell.org/unix

On branches: master,safe710fixes,safe710fixes-again,safefixes710again
Link       : http://ghc.haskell.org/trac/ghc/changeset/e865808ba41798889ea12b1bc056ef1c87f3f2e1/unix

>---------------------------------------------------------------

commit e865808ba41798889ea12b1bc056ef1c87f3f2e1
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Wed Sep 10 22:48:39 2014 +0200

    Use import list for `Data.Time.Clock.POSIX`
    
    This makes it more obvious why `unix` depends on `time` in the first
    place, i.e. for the sole purpose of reusing the `POSIXTime` type.


>---------------------------------------------------------------

e865808ba41798889ea12b1bc056ef1c87f3f2e1
 System/Posix/Files.hsc            | 2 +-
 System/Posix/Files/ByteString.hsc | 2 +-
 System/Posix/Files/Common.hsc     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/System/Posix/Files.hsc b/System/Posix/Files.hsc
index a54443a..c8b5ddf 100644
--- a/System/Posix/Files.hsc
+++ b/System/Posix/Files.hsc
@@ -99,7 +99,7 @@ import System.Posix.Files.Common
 import System.Posix.Error
 import System.Posix.Internals
 
-import Data.Time.Clock.POSIX
+import Data.Time.Clock.POSIX (POSIXTime)
 
 -- -----------------------------------------------------------------------------
 -- chmod()
diff --git a/System/Posix/Files/ByteString.hsc b/System/Posix/Files/ByteString.hsc
index 4f8a05f..80f0bea 100644
--- a/System/Posix/Files/ByteString.hsc
+++ b/System/Posix/Files/ByteString.hsc
@@ -104,7 +104,7 @@ import Foreign.C hiding (
 import System.Posix.Files.Common
 import System.Posix.ByteString.FilePath
 
-import Data.Time.Clock.POSIX
+import Data.Time.Clock.POSIX (POSIXTime)
 
 -- -----------------------------------------------------------------------------
 -- chmod()
diff --git a/System/Posix/Files/Common.hsc b/System/Posix/Files/Common.hsc
index 3056014..62fff6b 100644
--- a/System/Posix/Files/Common.hsc
+++ b/System/Posix/Files/Common.hsc
@@ -92,7 +92,7 @@ import Data.Bits
 import Data.Int
 import Data.Ratio
 #endif
-import Data.Time.Clock.POSIX
+import Data.Time.Clock.POSIX (POSIXTime)
 import System.Posix.Internals
 import Foreign.C
 import Foreign.ForeignPtr



More information about the ghc-commits mailing list