[commit: packages/directory] master: Re-hide unnecessary internal modules (cdd480f)
git at git.haskell.org
git at git.haskell.org
Mon Apr 17 21:35:34 UTC 2017
Repository : ssh://git@git.haskell.org/directory
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/cdd480fe06725694e2d02524d72a51c7d80dfb54/directory
>---------------------------------------------------------------
commit cdd480fe06725694e2d02524d72a51c7d80dfb54
Author: Phil Ruffwind <rf at rufflewind.com>
Date: Thu Mar 2 00:45:53 2017 -0500
Re-hide unnecessary internal modules
The C_utimensat, Posix, and Windows modules are all re-exported in
Internal, so there is no point in exposing those three.
>---------------------------------------------------------------
cdd480fe06725694e2d02524d72a51c7d80dfb54
System/Directory/Internal.hs | 3 +++
System/Directory/Internal/C_utimensat.hsc | 9 ---------
System/Directory/Internal/Posix.hsc | 9 ---------
System/Directory/Internal/Prelude.hs | 2 +-
System/Directory/Internal/Windows.hsc | 8 --------
directory.cabal | 6 +++---
6 files changed, 7 insertions(+), 30 deletions(-)
diff --git a/System/Directory/Internal.hs b/System/Directory/Internal.hs
index b9cc4cf..f85d6d6 100644
--- a/System/Directory/Internal.hs
+++ b/System/Directory/Internal.hs
@@ -4,6 +4,9 @@
-- Portability: unportable
--
-- Internal modules are always subject to change from version to version.
+-- The contents of this module are also platform-dependent, hence what is
+-- shown in the Hackage documentation may differ from what is actually
+-- available on your system.
#include <HsDirectoryConfig.h>
diff --git a/System/Directory/Internal/C_utimensat.hsc b/System/Directory/Internal/C_utimensat.hsc
index 0d20e84..f10c659 100644
--- a/System/Directory/Internal/C_utimensat.hsc
+++ b/System/Directory/Internal/C_utimensat.hsc
@@ -1,12 +1,3 @@
-
--- |
--- Stability: unstable
--- Portability: unportable
---
--- Internal modules are always subject to change from version to version.
--- Since this is a platform-specific module, the contents shown in the Hackage
--- documentation may differ from what is actually available on your system.
-
module System.Directory.Internal.C_utimensat where
#include <HsDirectoryConfig.h>
#ifdef HAVE_UTIMENSAT
diff --git a/System/Directory/Internal/Posix.hsc b/System/Directory/Internal/Posix.hsc
index 15f1f86..669e5c0 100644
--- a/System/Directory/Internal/Posix.hsc
+++ b/System/Directory/Internal/Posix.hsc
@@ -1,12 +1,3 @@
-
--- |
--- Stability: unstable
--- Portability: unportable
---
--- Internal modules are always subject to change from version to version.
--- Since this is a platform-specific module, the contents shown in the Hackage
--- documentation may differ from what is actually available on your system.
-
module System.Directory.Internal.Posix where
#include <HsDirectoryConfig.h>
#ifndef mingw32_HOST_OS
diff --git a/System/Directory/Internal/Prelude.hs b/System/Directory/Internal/Prelude.hs
index 81e216c..f128870 100644
--- a/System/Directory/Internal/Prelude.hs
+++ b/System/Directory/Internal/Prelude.hs
@@ -1,7 +1,7 @@
{-# LANGUAGE CPP #-}
-- |
-- Stability: unstable
--- Portability: unportable
+-- Portability: portable
--
-- Internal modules are always subject to change from version to version.
diff --git a/System/Directory/Internal/Windows.hsc b/System/Directory/Internal/Windows.hsc
index 1f238d0..c44cfc6 100644
--- a/System/Directory/Internal/Windows.hsc
+++ b/System/Directory/Internal/Windows.hsc
@@ -1,12 +1,4 @@
{-# LANGUAGE CPP #-}
--- |
--- Stability: unstable
--- Portability: unportable
---
--- Internal modules are always subject to change from version to version.
--- Since this is a platform-specific module, the contents shown in the Hackage
--- documentation may differ from what is actually available on your system.
-
module System.Directory.Internal.Windows where
#include <HsDirectoryConfig.h>
#ifdef mingw32_HOST_OS
diff --git a/directory.cabal b/directory.cabal
index 2def487..3f73c9a 100644
--- a/directory.cabal
+++ b/directory.cabal
@@ -44,12 +44,12 @@ Library
exposed-modules:
System.Directory
System.Directory.Internal
- System.Directory.Internal.C_utimensat
- System.Directory.Internal.Posix
System.Directory.Internal.Prelude
- System.Directory.Internal.Windows
other-modules:
+ System.Directory.Internal.C_utimensat
System.Directory.Internal.Config
+ System.Directory.Internal.Posix
+ System.Directory.Internal.Windows
include-dirs: .
More information about the ghc-commits
mailing list