[commit: base] master: Make GHC.Err depend on GHC.Integer (2227e5e)

Ian Lynagh igloo at earth.li
Thu Jun 6 19:56:46 CEST 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

https://github.com/ghc/packages-base/commit/2227e5eb99fd12443542513d205643eed2d1753e

>---------------------------------------------------------------

commit 2227e5eb99fd12443542513d205643eed2d1753e
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Jun 6 14:36:44 2013 +0100

    Make GHC.Err depend on GHC.Integer
    
    GHC relies internally on GCh.Integer.Type.mkInteger from integer-gmp,
    but the dependency isn't visible to the build system, so we need to
    add it here.

>---------------------------------------------------------------

 GHC/Err.lhs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/GHC/Err.lhs b/GHC/Err.lhs
index 0837f2e..7fb057c 100644
--- a/GHC/Err.lhs
+++ b/GHC/Err.lhs
@@ -26,6 +26,9 @@
 module GHC.Err( absentErr, error, undefined ) where
 import GHC.Types
 import GHC.Prim
+import GHC.Integer ()   -- Make sure Integer is compiled first
+                        -- because GHC depends on it in a wired-in way
+                        -- so the build system doesn't see the dependency
 import {-# SOURCE #-} GHC.Exception( errorCallException )
 \end{code}
 





More information about the ghc-commits mailing list