[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[GHC] #3041: Arch independent binary representations



#3041: Arch independent binary representations
----------------------------+-----------------------------------------------
Reporter:  nomeata          |          Owner:                  
    Type:  feature request  |         Status:  new             
Priority:  normal           |      Component:  Compiler        
 Version:  6.10.1           |       Severity:  normal          
Keywords:                   |       Testcase:                  
      Os:  Linux            |   Architecture:  Unknown/Multiple
----------------------------+-----------------------------------------------
 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?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3041>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

Reply to: