[Pkg-haskell-commits] darcs: ghc: Fix haddock build on armhf (Upstream bug #8988, patch by Colin Watson)

Joachim Breitner mail at joachim-breitner.de
Sat Apr 12 09:26:10 UTC 2014


Fri Apr 11 20:27:32 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Fix haddock build on armhf (Upstream bug #8988, patch by Colin Watson)

    M ./changelog +6
    A ./patches/Fix-documentation-build-failure-without-GHCi.patch
    M ./patches/series +1

Fri Apr 11 20:27:32 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Fix haddock build on armhf (Upstream bug #8988, patch by Colin Watson)
diff -rN -u old-ghc/changelog new-ghc/changelog
--- old-ghc/changelog	2014-04-12 09:26:10.115647176 +0000
+++ new-ghc/changelog	2014-04-12 09:26:10.139647167 +0000
@@ -1,3 +1,9 @@
+ghc (7.8.20140408-2) UNRELEASED; urgency=medium
+
+  * Fix haddock build on armhf (Upstream bug #8988, patch by Colin Watson)
+
+ -- Joachim Breitner <nomeata at debian.org>  Fri, 11 Apr 2014 22:27:04 +0200
+
 ghc (7.8.20140408-1) experimental; urgency=medium
 
   * New upstream release (7.8.1)
diff -rN -u old-ghc/patches/Fix-documentation-build-failure-without-GHCi.patch new-ghc/patches/Fix-documentation-build-failure-without-GHCi.patch
--- old-ghc/patches/Fix-documentation-build-failure-without-GHCi.patch	1970-01-01 00:00:00.000000000 +0000
+++ new-ghc/patches/Fix-documentation-build-failure-without-GHCi.patch	2014-04-12 09:26:10.131647171 +0000
@@ -0,0 +1,47 @@
+From 7d7ef32f9c310b1f666607d05fa4fd2680c02420 Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson at debian.org>
+Date: Fri, 11 Apr 2014 21:07:06 +0100
+Subject: [PATCH] Fix documentation build failure without GHCi
+
+tcTopSpliceExpr, runMetaE, runMetaP, runMetaT, and runMetaD are only
+exported by TcSplice.lhs if GHCi is available, so TcSplice.lhs-boot
+should behave likewise to stop Haddock failing.
+
+Fixes #8988
+
+Signed-off-by: Colin Watson <cjwatson at debian.org>
+---
+ compiler/typecheck/TcSplice.lhs-boot | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/compiler/typecheck/TcSplice.lhs-boot b/compiler/typecheck/TcSplice.lhs-boot
+index c496aed..6cd8183 100644
+--- a/compiler/typecheck/TcSplice.lhs-boot
++++ b/compiler/typecheck/TcSplice.lhs-boot
+@@ -26,7 +26,9 @@ tcTypedBracket :: HsBracket Name
+                -> TcRhoType
+                -> TcM (HsExpr TcId)
+ 
++#ifdef GHCI
+ tcTopSpliceExpr :: Bool -> TcM (LHsExpr Id) -> TcM (LHsExpr Id)
++#endif
+ 
+ runQuasiQuoteDecl :: HsQuasiQuote RdrName -> TcM [LHsDecl RdrName]
+ runQuasiQuoteExpr :: HsQuasiQuote RdrName -> TcM (LHsExpr RdrName)
+@@ -34,12 +36,12 @@ runQuasiQuoteType :: HsQuasiQuote RdrName -> TcM (LHsType RdrName)
+ runQuasiQuotePat  :: HsQuasiQuote RdrName -> TcM (LPat RdrName)
+ runAnnotation     :: CoreAnnTarget -> LHsExpr Name -> TcM Annotation
+ 
++#ifdef GHCI
+ runMetaE :: LHsExpr Id -> TcM (LHsExpr RdrName)
+ runMetaP :: LHsExpr Id -> TcM (LPat RdrName)
+ runMetaT :: LHsExpr Id  -> TcM (LHsType RdrName)
+ runMetaD :: LHsExpr Id -> TcM [LHsDecl RdrName]
+ 
+-#ifdef GHCI
+ lookupThName_maybe :: TH.Name -> TcM (Maybe Name)
+ runQuasi :: TH.Q a -> TcM a
+ #endif
+-- 
+1.9.1
+
diff -rN -u old-ghc/patches/series new-ghc/patches/series
--- old-ghc/patches/series	2014-04-12 09:26:10.115647176 +0000
+++ new-ghc/patches/series	2014-04-12 09:26:10.131647171 +0000
@@ -2,3 +2,4 @@
 ARM-VFPv3D16
 no-missing-haddock-file-warning
 haddock-hardcode-ghc-paths
+Fix-documentation-build-failure-without-GHCi.patch




More information about the Pkg-haskell-commits mailing list