build base3-compat
authorSimon Marlow <marlowsd@gmail.com>
Mon, 11 Aug 2008 14:38:31 +0000 (14:38 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 11 Aug 2008 14:38:31 +0000 (14:38 +0000)
compiler/ghc.cabal
compiler/ghci/InteractiveUI.hs
libraries/Makefile
packages
utils/ghc-pkg/ghc-pkg.cabal

index 735e8fb..5a62841 100644 (file)
@@ -33,7 +33,7 @@ Library
     Exposed: False
 
     if flag(base3)
-        Build-Depends: base       >= 3   && < 4,
+        Build-Depends: base       >= 3   && < 5,
                        directory  >= 1   && < 1.1,
                        process    >= 1   && < 1.1,
                        bytestring >= 0.9 && < 0.10,
index 9b59f02..896728b 100644 (file)
@@ -337,8 +337,7 @@ interactiveUI session srcs maybe_exprs = do
 #endif
 
    -- initial context is just the Prelude
-   prel_mod <- GHC.findModule session (GHC.mkModuleName "Prelude") 
-                                      (Just basePackageId)
+   prel_mod <- GHC.findModule session (GHC.mkModuleName "Prelude") Nothing
    GHC.setContext session [] [prel_mod]
 
    default_editor <- findEditor
index d759d8b..062399a 100644 (file)
@@ -41,7 +41,7 @@ include $(TOP)/mk/cabal-flags.mk
 
 # Any libraries listed here should also be in ../packages
 
-SUBDIRS  = ghc-prim $(INTEGER_LIBRARY) base array packedstring
+SUBDIRS  = ghc-prim $(INTEGER_LIBRARY) base base3-compat array packedstring
 SUBDIRS += containers bytestring old-locale old-time filepath directory
 ifeq "$(GhcLibsWithUnix)" "YES"
 SUBDIRS += unix
@@ -289,7 +289,10 @@ build.library.%: stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).% \
 
 html: doc
 
-doc: $(foreach SUBDIR,$(SUBDIRS),doc.library.$(SUBDIR))
+# No docs for compat libraries for now.
+DOC_SUBDIRS = $(filter-out %-compat, $(SUBDIRS))
+
+doc: $(foreach SUBDIR,$(DOC_SUBDIRS),doc.library.$(SUBDIR))
        sh gen_contents_index --inplace
 
 # Making hyperlinked source only works if we have hscolour
@@ -297,7 +300,7 @@ ifneq "$(HSCOLOUR)" ""
 CABAL_HADDOCK_FLAGS=--hyperlink-source
 endif
 
-$(foreach SUBDIR,$(SUBDIRS),doc.library.$(SUBDIR)):\
+$(foreach SUBDIR,$(DOC_SUBDIRS),doc.library.$(SUBDIR)):\
 doc.library.%: stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).% \
                cabal-bin ifBuildable/ifBuildable bootstrapping.conf
        if $(IFBUILDABLE) $*; then \
index 583ba69..d27d17a 100644 (file)
--- a/packages
+++ b/packages
@@ -5,6 +5,7 @@
 utils/hsc2hs                            hsc2hs                          darcs
 libraries/array                         packages/array                  darcs
 libraries/base                          packages/base                   darcs
+libraries/base3-compat                  packages/base3-compat           darcs
 libraries/bytestring                    packages/bytestring             darcs
 libraries/Cabal                         packages/Cabal                  darcs
 libraries/containers                    packages/containers             darcs
@@ -41,4 +42,3 @@ libraries/xhtml             extralibs   packages/xhtml                  darcs
 libraries/dph               dph         packages/dph                    darcs
 testsuite                   testsuite   testsuite                       darcs
 nofib                       nofib       nofib                           darcs
-
index 90722a6..03d475f 100644 (file)
@@ -20,7 +20,7 @@ Executable ghc-pkg
     Main-Is: Main.hs
     Extensions: CPP, ForeignFunctionInterface
     if flag(base3)
-        Build-Depends: base       >= 3   && < 4,
+        Build-Depends: base       >= 3   && < 5,
                        directory  >= 1   && < 1.1,
                        process    >= 1   && < 1.1,
                        pretty     >= 1   && < 1.1