On Sat, 2005-05-14 at 13:05 +0100, Dominic Steinitz wrote:
Can someone point out what I am doing wrong?
Thanks, Dominic.
[dom at tility Codec]$ haddock Codec/Utils.hs
--read-interface=http://www.haskell.org/ghc/docs/latest/html/base,/usr/share/doc/ghc-6.4/libr...
Warning: Codec.Utils: the following names could not be resolved: Integral Word8 Int
I don't believe that Haddock will download from a URL.
Try downlading the base.haddock file first: $ haddock Codec/Utils.hs --read-interface=base.haddock
In this case it would be better if Haddock gave you an error about there being no such (local) file as "http://www.haskell.org/g...", rather than ignoring it. I'd call this a user interface bug.
Duncan
I still get the same problem: [dom@tility Codec]$ haddock Codec/Utils.hs --read-interface=base.haddock Warning: Codec.Utils: the following names could not be resolved: Integral Word8 Int Dominic.
On Saturday 14 May 2005 2:01 pm, Dominic Steinitz wrote:
On Sat, 2005-05-14 at 13:05 +0100, Dominic Steinitz wrote:
Can someone point out what I am doing wrong?
Thanks, Dominic.
[dom at tility Codec]$ haddock Codec/Utils.hs
--read-interface=http://www.haskell.org/ghc/docs/latest/html/base,/usr/shar e/doc/ghc-6.4/libraries/base/base.haddock
Warning: Codec.Utils: the following names could not be resolved: Integral Word8 Int
I don't believe that Haddock will download from a URL.
Try downlading the base.haddock file first: $ haddock Codec/Utils.hs --read-interface=base.haddock
In this case it would be better if Haddock gave you an error about there being no such (local) file as "http://www.haskell.org/g...", rather than ignoring it. I'd call this a user interface bug.
Duncan
I still get the same problem:
[dom@tility Codec]$ haddock Codec/Utils.hs --read-interface=base.haddock Warning: Codec.Utils: the following names could not be resolved: Integral Word8 Int
Dominic. I've now used the -v option and it looks like haddock can't find the html files even though they are there :-( Anyone have any ideas?
[dom@tility Codec]$ haddock Codec/Utils.hs --read-interface=/usr/share/doc/ghc-6.4/libraries/base,/usr/share/doc/ghc-6.4/libraries/base/base.haddock -v Warning: Codec.Utils: imported module not found: Prelude Warning: Codec.Utils: imported module not found: Data.Word Warning: Codec.Utils: imported module not found: Data.Bits Warning: Codec.Utils: the following names could not be resolved: Integral Word8 Int [dom@tility Codec]$ ls /usr/share/doc/ghc-6.4/libraries/base/Prelude.html /usr/share/doc/ghc-6.4/libraries/base/Prelude.html [dom@tility Codec]$ ls /usr/share/doc/ghc-6.4/libraries/base/Data.Word.html /usr/share/doc/ghc-6.4/libraries/base/Data.Word.html [dom@tility Codec]$ ls /usr/share/doc/ghc-6.4/libraries/base/Data.Bits.html /usr/share/doc/ghc-6.4/libraries/base/Data.Bits.html [dom@tility Codec]$
Dominic Steinitz writes:
I've now used the -v option and it looks like haddock can't find the html files even though they are there :-( Anyone have any ideas?
Maybe the interface description files are broken, incomplete, or incompatible with your Haddock version? budweis:~/work/Codec$ mkdir docs budweis:~/work/Codec$ url=http://haskell.org/ghc/docs/latest/html/libraries budweis:~/work/Codec$ hdi=/usr/local/ghc-current/share/ghc-6.5/html/libraries budweis:~/work/Codec$ haddock -v -h -o docs \ -i ${url}/base,${hdi}/base/base.haddock Codec/Utils.hs budweis:~/work/Codec$ No error here, and the external links worked too. Peter
participants (2)
-
Dominic Steinitz -
Peter Simons