aboutsummaryrefslogtreecommitdiff
path: root/haddock-api
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 /haddock-api
parente7a650a94dbc118c423e684b27203a52baf34ff5 (diff)
parent948370b2bc7ab5a631b152eefbec17f697c3f247 (diff)
Merge pull request #1129 from obsidiansystems/wip/fix-stage1-build
Fix build of haddock in stage1
Diffstat (limited to 'haddock-api')
-rw-r--r--haddock-api/haddock-api.cabal1
-rw-r--r--haddock-api/src/Haddock/InterfaceFile.hs2
2 files changed, 2 insertions, 1 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]