Arch independent binary representations
when packaging ghc6.10 for Debian, we stumbled over a rather large annoyance: Haddock’s .haddock files are not architecture independent any more. It uses Binary instances to serialize it’s data, and for Int, the size depends on the architecture it is running. As otherwise the .haddock files should not be arch independent, it would make life for the ghc6 maintainer easier if this can be changed.
I started to fix haddock there, but it uses the Binary instance for some of ghc6 internal structures (Name at least, maybe more), which also serialize Int’s without specifying the size.
Would it be accepted to change the Binary instances for (at least) these data types to convert all Int’s to Int32’s or Int64’s before serialization? What would be broken by such a change?