Skip to content

Arch independent binary representations

Hi,

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?

Trac metadata
Trac field Value
Version 6.10.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC debian-haskell@lists.debian.org
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information