haddock issue building ghc-7.8 from git
Matthias Fischmann
mf at zerobuzz.net
Fri Mar 14 09:01:48 UTC 2014
Hi,
When building from git (branch ghc-7.8 as of today), I run into a
haddock issue because __GLASGOW_HASKELL__ appearently is not 709 on my
system. Not sure whether this is a bug, and if it should go to
trac/haddock or trac/ghc, so I decided to post it here.
My "fix" is easy enough (even though I ran into other problems later,
so I don't really know how well it works):
| ~/src/ghc/utils/haddock/src/Haddock$ git diff
| diff --git a/src/Haddock/InterfaceFile.hs b/src/Haddock/InterfaceFile.hs
| index 924829d..19a742f 100644
| --- a/src/Haddock/InterfaceFile.hs
| +++ b/src/Haddock/InterfaceFile.hs
| @@ -76,14 +76,14 @@ binaryInterfaceMagic = 0xD0Cface
| -- (2) set `binaryInterfaceVersionCompatibility` to [binaryInterfaceVersion]
| --
| binaryInterfaceVersion :: Word16
| -#if __GLASGOW_HASKELL__ == 709
| +-- #if __GLASGOW_HASKELL__ == 709
| binaryInterfaceVersion = 25
|
| binaryInterfaceVersionCompatibility :: [Word16]
| binaryInterfaceVersionCompatibility = [binaryInterfaceVersion]
| -#else
| -#error Unsupported GHC version
| -#endif
| +-- #else
| +-- #error Unsupported GHC version
| +-- #endif
|
|
| initBinMemSize :: Int
thanks,
matthias
More information about the ghc-devs
mailing list