From 6c90d0330e6954c16a38f8228c875328b3fc1a38 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 26 Nov 2004 11:58:21 +0000 Subject: [PATCH] [project @ 2004-11-26 11:58:18 by simonmar] More 'import Prelude's to help make -j. --- Data/Generics/Basics.hs | 4 +--- Data/Version.hs | 2 ++ System/Console/GetOpt.hs | 2 ++ System/FilePath.hs | 2 ++ System/Posix/Signals.hsc | 2 ++ System/Process/Internals.hs | 2 ++ 6 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Data/Generics/Basics.hs b/Data/Generics/Basics.hs index d3d8e0c..5d3f80f 100644 --- a/Data/Generics/Basics.hs +++ b/Data/Generics/Basics.hs @@ -97,9 +97,7 @@ module Data.Generics.Basics ( ------------------------------------------------------------------------------ -#ifdef __HADDOCK__ -import Prelude -#endif +import Prelude -- necessary to get dependencies right import Data.Typeable import Data.Maybe diff --git a/Data/Version.hs b/Data/Version.hs index a57678f..8ffe754 100644 --- a/Data/Version.hs +++ b/Data/Version.hs @@ -30,6 +30,8 @@ module Data.Version ( showVersion, parseVersion, ) where +import Prelude -- necessary to get dependencies right + -- These #ifdefs are necessary because this code might be compiled as -- part of ghc/lib/compat, and hence might be compiled by an older version -- of GHC. In which case, we might need to pick up ReadP from diff --git a/System/Console/GetOpt.hs b/System/Console/GetOpt.hs index 8162997..cfa721f 100644 --- a/System/Console/GetOpt.hs +++ b/System/Console/GetOpt.hs @@ -50,6 +50,8 @@ module System.Console.GetOpt ( -- $example ) where +import Prelude -- necessary to get dependencies right + import Data.List ( isPrefixOf ) -- |What to do with options following non-options diff --git a/System/FilePath.hs b/System/FilePath.hs index 317c7f4..a4f9689 100644 --- a/System/FilePath.hs +++ b/System/FilePath.hs @@ -38,6 +38,8 @@ module System.FilePath , searchPathSeparator ) where +import Prelude -- necessary to get dependencies right + import Data.List(intersperse) -------------------------------------------------------------- diff --git a/System/Posix/Signals.hsc b/System/Posix/Signals.hsc index 3585ddb..7318e5d 100644 --- a/System/Posix/Signals.hsc +++ b/System/Posix/Signals.hsc @@ -94,6 +94,8 @@ module System.Posix.Signals ( #endif ) where +import Prelude -- necessary to get dependencies right + #ifdef __GLASGOW_HASKELL__ #include "Signals.h" #else diff --git a/System/Process/Internals.hs b/System/Process/Internals.hs index 6751d15..0d01825 100644 --- a/System/Process/Internals.hs +++ b/System/Process/Internals.hs @@ -21,6 +21,8 @@ module System.Process.Internals ( #endif ) where +import Prelude -- necessary to get dependencies right + #if !defined(mingw32_TARGET_OS) && !defined(__MINGW32__) import System.Posix.Types ( CPid ) #else -- 1.7.10.4