[ from Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426335 ]

On Mon, May 28, 2007 at 03:29:14AM +0200, Arjan Oosting wrote:
> 
> I am updating my Debian packages and was trying to generate haddock
> documentation which links to haddock documentation of other packages.
> I have tried a couple of times with different options, --use-package,
> - --read-interface, but haddock keeps complaining that it can not
> resolve the names:
> 
> [...]
> 
> After some searching I think I have found the problem. The .haddock
> interface files which haddock generated are architecture dependent:
> 
> http://www.haskell.org/pipermail/haskell/2007-March/019196.html
> 
> The interface files in your packages are generated on amd64 while I
> build my packages on i386, hence I encounter problems.

OK, I've looked at an interface file generated for a trivial module on
amd64 and i386, and it looks like a simple word-size problem; one starts

    [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@^DMain

and the other

    [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@^DMain


The attached patch makes the Binary instance for Int always output
64 bits, which looks like it solves the problem. I can't see anything
else likely to cause problems at first glance.


Thanks
Ian

New patches:

[Store Int's as Int64's regardless of how wide Int is
Ian Lynagh <[EMAIL PROTECTED]>**20070528122649
 This is in order to make portable interface files
] {
hunk ./src/Binary.hs 439
-#if SIZEOF_HSINT == 4
-    put_ bh i = put_ bh (fromIntegral i :: Int32)
-    get  bh = do
-	x <- get bh
-	return $! (fromIntegral (x :: Int32))
-#elif SIZEOF_HSINT == 8
hunk ./src/Binary.hs 443
-#else
-#error "unsupported sizeof(HsInt)"
-#endif
}

Context:

[bug fix
Wolfgang Jeltsch <[EMAIL PROTECTED]>**20070419182340
 When Haddock was invoked with the --ignore-all-exports flag but the ignore-exports module attribute wasn't used, hyperlinks weren't created for non-exported names.
 
 This fix might not be as clean as one would wish (since --ignore-all-exports now results in ignore_all_exports = True *and* an additional OptIgnoreExports option for every module) but at least the bug seems to be resolved now.
] 
[URL expansion for %%, %L, %{LINE}
Roberto Zunino <[EMAIL PROTECTED]>**20070421023643] 
[Add a flag --allow-missing-html
Ian Lynagh <[EMAIL PROTECTED]>**20070307145955
 With this flag, haddock ignores whether or not the HTML directory of
 packages depended upon exists. We need this when haddocking groups of
 packages that aren't installed yet.
] 
[Add a --ghc-pkg flag
Ian Lynagh <[EMAIL PROTECTED]>**20070307144253] 
[added substitution %{FILE///c}
Conal Elliott <[EMAIL PROTECTED]>**20070214215400] 
[Do not create empty tables for data declarations which don't have any constructors, instances or comments. Gets better HTML 4.01 compliance
Neil Mitchell**20070206174912] 
[infix type op precedence tweak, ppHsNameAsVar 
Conal Elliott <[EMAIL PROTECTED]>**20070115171157] 
[tweaked tyvarop precedence
Conal Elliott <[EMAIL PROTECTED]>**20070110002300] 
[added infix type operators
Conal Elliott <[EMAIL PROTECTED]>**20070105172038] 
[Make the search box in a form so that enter does the default search
Neil Mitchell <http://www.cs.york.ac.uk/~ndm/>**20070112125817] 
[Make the max number of results 75 instead of 50, to allow map searching in the base library to work
Neil Mitchell <http://www.cs.york.ac.uk/~ndm/>**20070112122501] 
[Rewrite much of the index searching code, previously was too slow to execute on the base library with IE, the new version guarantees less than O(log n) operations be performed, where n is the number in the list (before was always O(n))
Neil Mitchell <http://www.cs.york.ac.uk/~ndm/>**20070112121746] 
[Make the index be in case-insensitive alphabetic order
Neil Mitchell <http://www.cs.york.ac.uk/~ndm/>**20070111185143] 
[Change from tabs to spaces in the ppHtmlIndex function
Neil Mitchell <http://www.cs.york.ac.uk/~ndm/>**20070111182244] 
[Delete more stuff that is no longer required
Neil Mitchell <http://www.cs.york.ac.uk/~ndm/>**20070111182119] 
[Delete dead code, now there is only one index page
Neil Mitchell <http://www.cs.york.ac.uk/~ndm/>**20070111181746] 
[Add searching on the index page
Neil Mitchell <http://www.cs.york.ac.uk/~ndm/>**20070111170709] 
[Never do spliting index files into many
Neil Mitchell <http://www.cs.york.ac.uk/~ndm/>**20070111154115] 
[add test for blank lines inside @...@ code block
Simon Marlow <[EMAIL PROTECTED]>**20070109131444] 
[allow blank lines inside a @...@ code block
Simon Marlow <[EMAIL PROTECTED]>**20070109131434] 
[Fix up a case of extra vertical space after a code block
Simon Marlow <[EMAIL PROTECTED]>**20070105111341
 
 
] 
[TODO: do something better about re-exported symbols from another package
Simon Marlow <[EMAIL PROTECTED]>**20061215155200] 
[fix <<URL>> image markup
Simon Marlow <[EMAIL PROTECTED]>**20061208100637] 
[add todo item for --maintainer
Simon Marlow <[EMAIL PROTECTED]>**20061206160507] 
[fix --use-package error message
Simon Marlow <[EMAIL PROTECTED]>**20061013105135] 
[Cabal's sdist does not generate "-src.tar.gz" files, but ".tar.gz" ones
[EMAIL PROTECTED] 
[Rename haddock.js to haddock-util.js
Simon Marlow <[EMAIL PROTECTED]>**20061011141737
 haddock.js will be run automatically by Windows when you type
 'haddock' if it is found on the PATH, so rename to avoid confusion.
 Spotted by Adrian Hey.
] 
[TAG 0.8 release
Simon Marlow <[EMAIL PROTECTED]>**20061010122403] 
Patch bundle hash:
8509d68ce95c03d0b39a659aee1736c78efb9f9b

Reply via email to