summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-10-19 12:03:11 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-10-19 12:21:59 +0200
commitabfbb0d6aa65bf6f664fd86eecc72bd3a28bb0b9 (patch)
treec1739dee2b644f490e2e2febf39931bd561f796c
parentce23745147b9aab99187e266412efa27148a9b19 (diff)
downloadhaskell-abfbb0d6aa65bf6f664fd86eecc72bd3a28bb0b9.tar.gz
Remove redundant explicit `Prelude` imports
Since they're implied by the lack of `NoImplicitPrelude`
-rw-r--r--libraries/base/Control/Concurrent.hs2
-rw-r--r--libraries/base/Control/Concurrent/Chan.hs2
-rw-r--r--libraries/base/Control/Monad/Instances.hs2
-rw-r--r--libraries/base/Control/Monad/ST/Lazy/Imp.hs2
-rw-r--r--libraries/base/Control/Monad/Zip.hs1
-rw-r--r--libraries/base/Data/Complex.hs2
-rw-r--r--libraries/base/Data/Fixed.hs1
-rw-r--r--libraries/base/Data/Ix.hs2
-rw-r--r--libraries/base/Data/Ratio.hs2
-rw-r--r--libraries/base/Data/STRef.hs2
-rw-r--r--libraries/base/Data/STRef/Lazy.hs1
-rw-r--r--libraries/base/Data/Unique.hs2
-rw-r--r--libraries/base/GHC/Constants.hs2
-rw-r--r--libraries/base/GHC/Environment.hs1
-rw-r--r--libraries/base/System/CPUTime.hsc2
-rw-r--r--libraries/base/System/Console/GetOpt.hs2
-rw-r--r--libraries/base/System/Environment.hs2
-rw-r--r--libraries/base/System/Exit.hs1
-rw-r--r--libraries/base/System/Info.hs1
-rw-r--r--libraries/base/System/Mem.hs1
-rw-r--r--libraries/base/System/Mem/StableName.hs2
-rw-r--r--libraries/base/Text/Printf.hs1
-rw-r--r--libraries/base/Text/Show/Functions.hs2
23 files changed, 0 insertions, 38 deletions
diff --git a/libraries/base/Control/Concurrent.hs b/libraries/base/Control/Concurrent.hs
index eaf1e6621f..c12fef54b0 100644
--- a/libraries/base/Control/Concurrent.hs
+++ b/libraries/base/Control/Concurrent.hs
@@ -104,8 +104,6 @@ module Control.Concurrent (
) where
-import Prelude
-
import Control.Exception.Base as Exception
import GHC.Exception
diff --git a/libraries/base/Control/Concurrent/Chan.hs b/libraries/base/Control/Concurrent/Chan.hs
index e0b7b54c23..487187503d 100644
--- a/libraries/base/Control/Concurrent/Chan.hs
+++ b/libraries/base/Control/Concurrent/Chan.hs
@@ -34,8 +34,6 @@ module Control.Concurrent.Chan
writeList2Chan,
) where
-import Prelude
-
import System.IO.Unsafe ( unsafeInterleaveIO )
import Control.Concurrent.MVar
import Control.Exception (mask_)
diff --git a/libraries/base/Control/Monad/Instances.hs b/libraries/base/Control/Monad/Instances.hs
index 687d33c4b8..7a4fdbefcd 100644
--- a/libraries/base/Control/Monad/Instances.hs
+++ b/libraries/base/Control/Monad/Instances.hs
@@ -17,5 +17,3 @@
module Control.Monad.Instances {-# DEPRECATED "This module now contains no instances and will be removed in the future" #-} -- deprecated in 7.8
(Functor(..),Monad(..)) where
-
-import Prelude
diff --git a/libraries/base/Control/Monad/ST/Lazy/Imp.hs b/libraries/base/Control/Monad/ST/Lazy/Imp.hs
index 3fdd541047..80c9fa5af3 100644
--- a/libraries/base/Control/Monad/ST/Lazy/Imp.hs
+++ b/libraries/base/Control/Monad/ST/Lazy/Imp.hs
@@ -36,8 +36,6 @@ module Control.Monad.ST.Lazy.Imp (
unsafeIOToST
) where
-import Prelude
-
import Control.Monad.Fix
import qualified Control.Monad.ST.Safe as ST
diff --git a/libraries/base/Control/Monad/Zip.hs b/libraries/base/Control/Monad/Zip.hs
index ec13eedf23..197951e6e9 100644
--- a/libraries/base/Control/Monad/Zip.hs
+++ b/libraries/base/Control/Monad/Zip.hs
@@ -17,7 +17,6 @@
module Control.Monad.Zip where
-import Prelude
import Control.Monad (liftM)
-- | `MonadZip` type class. Minimal definition: `mzip` or `mzipWith`
diff --git a/libraries/base/Data/Complex.hs b/libraries/base/Data/Complex.hs
index 0ce148788d..2baa60bd36 100644
--- a/libraries/base/Data/Complex.hs
+++ b/libraries/base/Data/Complex.hs
@@ -34,8 +34,6 @@ module Data.Complex
) where
-import Prelude
-
import Data.Typeable
import Data.Data (Data)
diff --git a/libraries/base/Data/Fixed.hs b/libraries/base/Data/Fixed.hs
index 8e8ea60ebe..b499617f32 100644
--- a/libraries/base/Data/Fixed.hs
+++ b/libraries/base/Data/Fixed.hs
@@ -37,7 +37,6 @@ module Data.Fixed
E12,Pico
) where
-import Prelude -- necessary to get dependencies right
import Data.Typeable
import Data.Data
import GHC.Read
diff --git a/libraries/base/Data/Ix.hs b/libraries/base/Data/Ix.hs
index d3be1c4759..e7e1f34bee 100644
--- a/libraries/base/Data/Ix.hs
+++ b/libraries/base/Data/Ix.hs
@@ -61,6 +61,4 @@ module Data.Ix
) where
--- import Prelude
-
import GHC.Arr
diff --git a/libraries/base/Data/Ratio.hs b/libraries/base/Data/Ratio.hs
index 6a16e9a260..8517e485ff 100644
--- a/libraries/base/Data/Ratio.hs
+++ b/libraries/base/Data/Ratio.hs
@@ -24,8 +24,6 @@ module Data.Ratio
) where
-import Prelude
-
import GHC.Real -- The basic defns for Ratio
-- -----------------------------------------------------------------------------
diff --git a/libraries/base/Data/STRef.hs b/libraries/base/Data/STRef.hs
index dc65abc791..8df34bba95 100644
--- a/libraries/base/Data/STRef.hs
+++ b/libraries/base/Data/STRef.hs
@@ -24,8 +24,6 @@ module Data.STRef (
modifySTRef'
) where
-import Prelude
-
import GHC.ST
import GHC.STRef
diff --git a/libraries/base/Data/STRef/Lazy.hs b/libraries/base/Data/STRef/Lazy.hs
index 039b03f3b5..5134de446e 100644
--- a/libraries/base/Data/STRef/Lazy.hs
+++ b/libraries/base/Data/STRef/Lazy.hs
@@ -25,7 +25,6 @@ module Data.STRef.Lazy (
import Control.Monad.ST.Lazy.Safe
import qualified Data.STRef as ST
-import Prelude
newSTRef :: a -> ST s (ST.STRef s a)
readSTRef :: ST.STRef s a -> ST s a
diff --git a/libraries/base/Data/Unique.hs b/libraries/base/Data/Unique.hs
index a5c0d6c753..74bac76ad0 100644
--- a/libraries/base/Data/Unique.hs
+++ b/libraries/base/Data/Unique.hs
@@ -22,8 +22,6 @@ module Data.Unique (
hashUnique
) where
-import Prelude
-
import System.IO.Unsafe (unsafePerformIO)
import GHC.Base
diff --git a/libraries/base/GHC/Constants.hs b/libraries/base/GHC/Constants.hs
index d8efd7228c..c2e01a3e62 100644
--- a/libraries/base/GHC/Constants.hs
+++ b/libraries/base/GHC/Constants.hs
@@ -2,8 +2,6 @@
module GHC.Constants where
-import Prelude ()
-
-- TODO: This used to include HaskellConstants.hs, but that has now gone.
-- We probably want to include the constants in platformConstants somehow
-- instead.
diff --git a/libraries/base/GHC/Environment.hs b/libraries/base/GHC/Environment.hs
index 257ee27ebf..39b472913a 100644
--- a/libraries/base/GHC/Environment.hs
+++ b/libraries/base/GHC/Environment.hs
@@ -3,7 +3,6 @@
module GHC.Environment (getFullArgs) where
-import Prelude
import Foreign
import Foreign.C
diff --git a/libraries/base/System/CPUTime.hsc b/libraries/base/System/CPUTime.hsc
index 85634b7473..1d2f341d18 100644
--- a/libraries/base/System/CPUTime.hsc
+++ b/libraries/base/System/CPUTime.hsc
@@ -24,8 +24,6 @@ module System.CPUTime
cpuTimePrecision -- :: Integer
) where
-import Prelude
-
import Data.Ratio
import Foreign.Safe
diff --git a/libraries/base/System/Console/GetOpt.hs b/libraries/base/System/Console/GetOpt.hs
index 5bdb6d11d1..fa9f776ad5 100644
--- a/libraries/base/System/Console/GetOpt.hs
+++ b/libraries/base/System/Console/GetOpt.hs
@@ -62,8 +62,6 @@ module System.Console.GetOpt (
-- $example2
) where
-import Prelude -- necessary to get dependencies right
-
import Data.List ( isPrefixOf, find )
-- |What to do with options following non-options
diff --git a/libraries/base/System/Environment.hs b/libraries/base/System/Environment.hs
index b238360d24..ee91b78d79 100644
--- a/libraries/base/System/Environment.hs
+++ b/libraries/base/System/Environment.hs
@@ -29,8 +29,6 @@ module System.Environment
getEnvironment,
) where
-import Prelude
-
import Foreign.Safe
import Foreign.C
import System.IO.Error (mkIOError)
diff --git a/libraries/base/System/Exit.hs b/libraries/base/System/Exit.hs
index f2fc433777..088a76bd96 100644
--- a/libraries/base/System/Exit.hs
+++ b/libraries/base/System/Exit.hs
@@ -23,7 +23,6 @@ module System.Exit
, die
) where
-import Prelude
import System.IO
import GHC.IO
diff --git a/libraries/base/System/Info.hs b/libraries/base/System/Info.hs
index 1d251bc37c..1791cdbfe3 100644
--- a/libraries/base/System/Info.hs
+++ b/libraries/base/System/Info.hs
@@ -24,7 +24,6 @@ module System.Info
compilerVersion
) where
-import Prelude
import Data.Version
-- | The version of 'compilerName' with which the program was compiled
diff --git a/libraries/base/System/Mem.hs b/libraries/base/System/Mem.hs
index 3674dcb224..09dfdf9191 100644
--- a/libraries/base/System/Mem.hs
+++ b/libraries/base/System/Mem.hs
@@ -19,7 +19,6 @@ module System.Mem
, performMajorGC
, performMinorGC
) where
-import Prelude
-- | Triggers an immediate garbage collection.
performGC :: IO ()
diff --git a/libraries/base/System/Mem/StableName.hs b/libraries/base/System/Mem/StableName.hs
index 4f2cab81f8..f2baaf3e83 100644
--- a/libraries/base/System/Mem/StableName.hs
+++ b/libraries/base/System/Mem/StableName.hs
@@ -38,8 +38,6 @@ module System.Mem.StableName (
eqStableName
) where
-import Prelude
-
import Data.Typeable
import GHC.IO ( IO(..) )
diff --git a/libraries/base/Text/Printf.hs b/libraries/base/Text/Printf.hs
index a92a1a48ab..d20e077b95 100644
--- a/libraries/base/Text/Printf.hs
+++ b/libraries/base/Text/Printf.hs
@@ -91,7 +91,6 @@ module Text.Printf(
IsChar(..)
) where
-import Prelude
import Data.Char
import Data.Int
import Data.List
diff --git a/libraries/base/Text/Show/Functions.hs b/libraries/base/Text/Show/Functions.hs
index b34cbc67ce..7d3f110a32 100644
--- a/libraries/base/Text/Show/Functions.hs
+++ b/libraries/base/Text/Show/Functions.hs
@@ -21,8 +21,6 @@
module Text.Show.Functions () where
-import Prelude
-
instance Show (a -> b) where
showsPrec _ _ = showString "<function>"