aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-02-18 14:13:47 -0500
committerGitHub <noreply@github.com>2020-02-18 14:13:47 -0500
commit59932f1749394fedc3533bea1474bc9e207824e1 (patch)
tree370a07152001cb22fd3abad0180b1984d47e31ba
parente7a650a94dbc118c423e684b27203a52baf34ff5 (diff)
parent948370b2bc7ab5a631b152eefbec17f697c3f247 (diff)
Merge pull request #1129 from obsidiansystems/wip/fix-stage1-build
Fix build of haddock in stage1
-rw-r--r--haddock-api/haddock-api.cabal1
-rw-r--r--haddock-api/src/Haddock/InterfaceFile.hs2
-rw-r--r--haddock-library/haddock-library.cabal2
-rw-r--r--haddock-test/haddock-test.cabal3
-rw-r--r--haddock.cabal4
5 files changed, 8 insertions, 4 deletions
diff --git a/haddock-api/haddock-api.cabal b/haddock-api/haddock-api.cabal
index 5eb69345..2c892de6 100644
--- a/haddock-api/haddock-api.cabal
+++ b/haddock-api/haddock-api.cabal
@@ -13,6 +13,7 @@ bug-reports: https://github.com/haskell/haddock/issues
copyright: (c) Simon Marlow, David Waern
category: Documentation
build-type: Simple
+tested-with: GHC==8.10.*, GHC==8.8.1, GHC==8.6.5
extra-source-files:
CHANGES.md
diff --git a/haddock-api/src/Haddock/InterfaceFile.hs b/haddock-api/src/Haddock/InterfaceFile.hs
index 812d6a50..e96ff665 100644
--- a/haddock-api/src/Haddock/InterfaceFile.hs
+++ b/haddock-api/src/Haddock/InterfaceFile.hs
@@ -82,7 +82,7 @@ binaryInterfaceMagic = 0xD0Cface
-- (2) set `binaryInterfaceVersionCompatibility` to [binaryInterfaceVersion]
--
binaryInterfaceVersion :: Word16
-#if (__GLASGOW_HASKELL__ >= 811) && (__GLASGOW_HASKELL__ < 813)
+#if MIN_VERSION_ghc(8,11,0) && !MIN_VERSION_ghc(8,13,0)
binaryInterfaceVersion = 34
binaryInterfaceVersionCompatibility :: [Word16]
diff --git a/haddock-library/haddock-library.cabal b/haddock-library/haddock-library.cabal
index 9cc011de..feb98e2f 100644
--- a/haddock-library/haddock-library.cabal
+++ b/haddock-library/haddock-library.cabal
@@ -17,6 +17,8 @@ maintainer: Alec Theriault <alec.theriault@gmail.com>, Alex Biehl <ale
homepage: http://www.haskell.org/haddock/
bug-reports: https://github.com/haskell/haddock/issues
category: Documentation
+tested-with: GHC==8.10.*, GHC==8.8.1, GHC==8.6.5
+
extra-source-files:
CHANGES.md
diff --git a/haddock-test/haddock-test.cabal b/haddock-test/haddock-test.cabal
index a656d707..f5105f92 100644
--- a/haddock-test/haddock-test.cabal
+++ b/haddock-test/haddock-test.cabal
@@ -1,3 +1,4 @@
+cabal-version: >= 1.10
name: haddock-test
version: 0.0.1
synopsis: Test utilities for Haddock
@@ -9,8 +10,8 @@ bug-reports: https://github.com/haskell/haddock/issues
copyright: (c) Simon Marlow, David Waern
category: Documentation
build-type: Simple
-cabal-version: >= 1.10
stability: experimental
+tested-with: GHC==8.10.*, GHC==8.8.1, GHC==8.6.5
library
default-language: Haskell2010
diff --git a/haddock.cabal b/haddock.cabal
index 0d3e9d9f..c8a3239e 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -33,7 +33,7 @@ bug-reports: https://github.com/haskell/haddock/issues
copyright: (c) Simon Marlow, David Waern
category: Documentation
build-type: Simple
-tested-with: GHC==8.6.*
+tested-with: GHC==8.10.*, GHC==8.8.1, GHC==8.6.5
extra-source-files:
CHANGES.md
@@ -64,7 +64,7 @@ executable haddock
-- haddock typically only supports a single GHC major version
build-depends:
- base ^>= 4.14.0.0
+ base ^>= 4.12.0.0 || ^>= 4.13.0.0 || ^>= 4.14.0.0
if flag(in-ghc-tree)
hs-source-dirs: haddock-api/src, haddock-library/src