aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2008-10-10 21:34:59 +0000
committerDavid Waern <david.waern@gmail.com>2008-10-10 21:34:59 +0000
commit337fdafb1b7a74d09d47c8aae919d5b3d34afb99 (patch)
treec8cf2c6c710354162209c7200054966beb8e14e7 /src
parenta05d13c7c93b25a83065403e54f09b0d4d7288c6 (diff)
Add back .haddock file versioning based on GHC version
It was accidentally removed in the patch for GHC 6.8.2 compatibility
Diffstat (limited to 'src')
-rw-r--r--src/Haddock/InterfaceFile.hs9
1 files changed, 9 insertions, 0 deletions
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