From 337fdafb1b7a74d09d47c8aae919d5b3d34afb99 Mon Sep 17 00:00:00 2001 From: David Waern Date: Fri, 10 Oct 2008 21:34:59 +0000 Subject: Add back .haddock file versioning based on GHC version It was accidentally removed in the patch for GHC 6.8.2 compatibility --- src/Haddock/InterfaceFile.hs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Haddock/InterfaceFile.hs') diff --git a/src/Haddock/InterfaceFile.hs b/src/Haddock/InterfaceFile.hs index 9ad22431..22f1e4d1 100644 --- a/src/Haddock/InterfaceFile.hs +++ b/src/Haddock/InterfaceFile.hs @@ -57,7 +57,16 @@ binaryInterfaceMagic = 0xD0Cface -- Instead of adding one, we add three to all version numbers -- when one of our own (stored) datatypes is changed. binaryInterfaceVersion :: Word16 +#if __GLASGOW_HASKELL__ == 608 && __GHC_PATCHLEVEL__ == 2 binaryInterfaceVersion = 2 +#endif +#if __GLASGOW_HASKELL__ == 608 && __GHC_PATCHLEVEL__ == 3 +binaryInterfaceVersion = 3 +#endif +#if __GLASGOW_HASKELL__ >= 609 +binaryInterfaceVersion = 4 +#endif + initBinMemSize :: Int initBinMemSize = 1024*1024 -- cgit v1.2.3