Random is now only needed to build dph
authorIan Lynagh <igloo@earth.li>
Wed, 6 Jul 2011 19:30:58 +0000 (20:30 +0100)
committerIan Lynagh <igloo@earth.li>
Fri, 8 Jul 2011 12:12:04 +0000 (13:12 +0100)
ghc.mk
packages

diff --git a/ghc.mk b/ghc.mk
index bd3d5da..27c7886 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -297,12 +297,12 @@ INTREE_ONLY_PACKAGES := haskeline mtl terminfo utf8-string xhtml
 
 DPH_PACKAGES := dph/dph-base dph/dph-prim-interface dph/dph-prim-seq \
                 dph/dph-common dph/dph-prim-par dph/dph-par dph/dph-seq \
-                vector primitive
+                vector primitive random
 
 # Packages that, if present, must be built by the stage2 compiler,
 # because they use TH and/or annotations, or depend on other stage2
 # packages:
-STAGE2_PACKAGES := $(DPH_PACKAGES) haskell98 haskell2010 random
+STAGE2_PACKAGES := $(DPH_PACKAGES) haskell98 haskell2010
 # Packages that we shouldn't build if we don't have TH (e.g. because
 # we're building a profiled compiler):
 TH_PACKAGES := $(DPH_PACKAGES)
@@ -386,7 +386,6 @@ $(eval $(call addPackage,old-time))
 $(eval $(call addPackage,time))
 $(eval $(call addPackage,directory))
 $(eval $(call addPackage,process))
-$(eval $(call addPackage,random))
 $(eval $(call addPackage,extensible-exceptions))
 $(eval $(call addPackage,haskell98))
 $(eval $(call addPackage,haskell2010))
index 743150e..84ce2b6 100644 (file)
--- a/packages
+++ b/packages
@@ -64,7 +64,6 @@ libraries/old-locale            -           packages/old-locale.git
 libraries/old-time              -           packages/old-time.git               git
 libraries/pretty                -           packages/pretty.git                 git
 libraries/process               -           packages/process.git                git
-libraries/random                -           packages/random.git                 git
 libraries/template-haskell      -           packages/template-haskell.git       git
 libraries/terminfo              -           packages/terminfo.git               git
 libraries/unix                  -           packages/unix.git                   git
@@ -76,6 +75,7 @@ nofib                           nofib       nofib.git
 libraries/deepseq               extra       packages/deepseq.git                git
 libraries/parallel              extra       packages/parallel.git               git
 libraries/stm                   extra       packages/stm.git                    git
+libraries/random                dph         packages/random.git                 git
 libraries/primitive             dph         packages/primitive.git              git
 libraries/vector                dph         packages/vector.git                 git
 libraries/dph                   dph         packages/dph.git                    git