Don't automatically link the haskell98 package
authorIan Lynagh <igloo@earth.li>
Wed, 6 Oct 2010 13:02:35 +0000 (13:02 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 6 Oct 2010 13:02:35 +0000 (13:02 +0000)
The default language is now Haskell2010, so this was a little odd.
Also, --make is now on by default, so this was largely irrelevant.

compiler/basicTypes/Module.lhs
compiler/ghci/Linker.lhs
compiler/main/DriverPipeline.hs
compiler/main/Packages.lhs

index 072d011..06ac936 100644 (file)
@@ -35,7 +35,6 @@ module Module
        integerPackageId,
        basePackageId,
        rtsPackageId,
-       haskell98PackageId,
        thPackageId,
         dphSeqPackageId,
         dphParPackageId,
@@ -346,14 +345,13 @@ packageIdString = unpackFS . packageIdFS
 -- Make sure you change 'Packages.findWiredInPackages' if you add an entry here
 
 integerPackageId, primPackageId,
-  basePackageId, rtsPackageId, haskell98PackageId,
+  basePackageId, rtsPackageId,
   thPackageId, dphSeqPackageId, dphParPackageId,
   mainPackageId  :: PackageId
 primPackageId      = fsToPackageId (fsLit "ghc-prim")
 integerPackageId   = fsToPackageId (fsLit cIntegerLibrary)
 basePackageId      = fsToPackageId (fsLit "base")
 rtsPackageId      = fsToPackageId (fsLit "rts")
-haskell98PackageId = fsToPackageId (fsLit "haskell98")
 thPackageId        = fsToPackageId (fsLit "template-haskell")
 dphSeqPackageId    = fsToPackageId (fsLit "dph-seq")
 dphParPackageId    = fsToPackageId (fsLit "dph-par")
index f7d925e..cc90cb5 100644 (file)
@@ -964,7 +964,7 @@ partOfGHCi :: [PackageName]
 partOfGHCi
  | isWindowsTarget || isDarwinTarget = []
  | otherwise = map PackageName
-                   ["base", "haskell98", "template-haskell", "editline"]
+                   ["base", "template-haskell", "editline"]
 
 showLS :: LibrarySpec -> String
 showLS (Object nm)    = "(static) " ++ nm
index 464aa28..7c902e9 100644 (file)
@@ -461,15 +461,9 @@ doLink dflags stop_phase o_files
   | otherwise
   = case ghcLink dflags of
         NoLink     -> return ()
-        LinkBinary -> linkBinary dflags o_files link_pkgs
+        LinkBinary -> linkBinary dflags o_files []
         LinkDynLib -> linkDynLib dflags o_files []
         other      -> panicBadLink other
-  where
-   -- Always link in the haskell98 package for static linking.  Other
-   -- packages have to be specified via the -package flag.
-    link_pkgs
-     | dopt Opt_AutoLinkPackages dflags = [haskell98PackageId]
-     | otherwise                        = []
 
 
 -- ---------------------------------------------------------------------------
index ff316aa..ec46a43 100644 (file)
@@ -428,7 +428,6 @@ findWiredInPackages dflags pkgs = do
                             integerPackageId,
                             basePackageId,
                             rtsPackageId,
-                            haskell98PackageId,
                             thPackageId,
                             dphSeqPackageId,
                             dphParPackageId ]