Haddock not being able to read interface file
Hello, I want to generate Haddock documentation for some Haskell files and want to create hyperlinks to the base package’s documentation. I’ve downloaded <http://www.haskell.org/ghc/docs/latest/html/libraries/base/base.haddock> and use the option --read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/base,base.haddock in my Haddock command line. However, Haddock outputs the following: haddock: Warning: The interface file "base.haddock" could not be read. Maybe it's from a later version of Haddock? This happens with Haddock 0.8 as well as the current development version of Haddock. What’s wrong here? Best wishes, Wolfgang
Wolfgang Jeltsch wrote:
Hello,
I want to generate Haddock documentation for some Haskell files and want to create hyperlinks to the base package’s documentation. I’ve downloaded <http://www.haskell.org/ghc/docs/latest/html/libraries/base/base.haddock> and use the option
--read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/base,base.haddock
in my Haddock command line. However, Haddock outputs the following:
haddock: Warning: The interface file "base.haddock" could not be read. Maybe it's from a later version of Haddock?
This happens with Haddock 0.8 as well as the current development version of Haddock.
It's possible the interface files are not portable between 32 and 64-bit machines, and you're using one generated for a different word size. I haven't verified this, but I'll make a note to check for the next version of Haddock. I imagine we'll move to using Data.Binary anyway, which should fix any non-portability issues. Cheers, Simon
Am Dienstag, 6. März 2007 12:09 schrieben Sie:
Wolfgang Jeltsch wrote: […]
However, Haddock outputs the following:
haddock: Warning: The interface file "base.haddock" could not be read. Maybe it's from a later version of Haddock?
This happens with Haddock 0.8 as well as the current development version of Haddock.
It's possible the interface files are not portable between 32 and 64-bit machines, and you're using one generated for a different word size. I haven't verified this, but I'll make a note to check for the next version of Haddock. I imagine we'll move to using Data.Binary anyway, which should fix any non-portability issues.
Hello Simon, I use a 64 bit machine. Was base.haddock on the Haskell website created on a 32 bit machine?
[…]
Best wishes, Wolfgang
participants (2)
-
Simon Marlow -
Wolfgang Jeltsch