summaryrefslogtreecommitdiff
path: root/compiler/main/Packages.lhs
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-10-11 14:35:23 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-10-11 14:35:23 +0000
commit046ee54f048ddd721dcee41916d6a6f68db3b15b (patch)
treeaf3cf2046b70499d21ffd1d2fd1ca8f63951f41b /compiler/main/Packages.lhs
parent5199290f732017432869c9939934871e62c50b74 (diff)
downloadhaskell-046ee54f048ddd721dcee41916d6a6f68db3b15b.tar.gz
Module header tidyup #2
Push this further along, and fix build problems in the first patch.
Diffstat (limited to 'compiler/main/Packages.lhs')
-rw-r--r--compiler/main/Packages.lhs17
1 files changed, 7 insertions, 10 deletions
diff --git a/compiler/main/Packages.lhs b/compiler/main/Packages.lhs
index bbaf846893..fb54a1291f 100644
--- a/compiler/main/Packages.lhs
+++ b/compiler/main/Packages.lhs
@@ -42,15 +42,12 @@ import Config ( cProjectVersion )
import Name ( Name, nameModule_maybe )
import UniqFM
import Module
-import UniqSet
import Util
import Maybes ( expectJust, MaybeErr(..) )
import Panic
import Outputable
-#if __GLASGOW_HASKELL__ >= 603
-import System.Directory ( getAppUserDataDirectory )
-#else
+#if __GLASGOW_HASKELL__ < 603
import Compat.Directory ( getAppUserDataDirectory )
#endif
@@ -58,15 +55,15 @@ import System.Environment ( getEnv )
import Distribution.InstalledPackageInfo
import Distribution.Package
import Distribution.Version
-import System.Directory ( doesFileExist, doesDirectoryExist,
- getDirectoryContents )
-import Data.Maybe ( catMaybes )
-import Control.Monad ( foldM )
-import Data.List ( nub, partition, sortBy, isSuffixOf )
import FastString
-import EXCEPTION ( throwDyn )
import ErrUtils ( debugTraceMsg, putMsg, Message )
+import System.Directory
+import Data.Maybe
+import Control.Monad
+import Data.List
+import Control.Exception ( throwDyn )
+
-- ---------------------------------------------------------------------------
-- The Package state