[Haskell] Haddock Problem

Dominic Steinitz dominic.steinitz at blueyonder.co.uk
Sat May 14 15:06:49 EDT 2005


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 at 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 at 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 at tility Codec]$ ls /usr/share/doc/ghc-6.4/libraries/base/Prelude.html
/usr/share/doc/ghc-6.4/libraries/base/Prelude.html
[dom at 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 at 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 at tility Codec]$



More information about the Haskell mailing list