Re: Haskell-hoogle package is ready for upload.
- To: Joachim Breitner <nomeata@debian.org>
- Cc: debian-haskell@lists.debian.org
- Subject: Re: Haskell-hoogle package is ready for upload.
- From: Kiwamu Okabe <kiwamu@debian.or.jp>
- Date: Fri, 5 Oct 2012 01:57:45 +0900
- Message-id: <[🔎] CAEvX6dnOzVTO7m=xH3ALWueZEDHiPZ_uuAc-iZW52oC_pGD7sQ@mail.gmail.com>
- In-reply-to: <1348354862.18960.18.camel@kirk>
- References: <CAEvX6d=z_TNmYhyDKuo7mKKOtT6hvJbE=Dp=j81ekfw0RnyXRQ@mail.gmail.com> <1347395524.4313.6.camel@kirk> <CAEvX6dmPNfy5QnOz7Te=B+yLdDPmQowN-bgZD=RU8feySc245g@mail.gmail.com> <20120913022603.864693e3a2f5864496e83496@mega-nerd.com> <CAEvX6dkWD0obMYJR_MOwaobwBsMc_t7f9vCmauOC_Cev=KYyxQ@mail.gmail.com> <20120913165418.6d3e0724f58bb4c4d92e04f1@mega-nerd.com> <CAEvX6dmZYJYsY+kMJ+3g05wfxz1jnkhQmpx9DrTUkrsuZWS74A@mail.gmail.com> <CAEvX6dmT6SO_ObejBAAVgXx5XmzuZo2q7wVyLHLktzrM-iBwPw@mail.gmail.com> <CAEvX6dn-98-YtLo+kdjBOPqS2_cSn4=jh=9HWZYuK+zfFmH5mA@mail.gmail.com> <1348322930.18960.6.camel@kirk> <CAEvX6dkQdeqTdLjEW50S8WrD3Fc1Jm2z--2Gksmow+2ozpYymw@mail.gmail.com> <1348354862.18960.18.camel@kirk>
Hi Joachim.
On Sun, Sep 23, 2012 at 8:01 AM, Joachim Breitner <nomeata@debian.org> wrote:
>> But who puts "example.txt" on /usr/share/doc/libghc-*-doc/html path?
>> I think the path is haddock's html directory.
>
> Who knows? the html directory could also be used for something else. The
> file ending .txt is unfortunate anyways, as it is not really text but
> data for a specific program – hence my vote for a more specific file
> name.
You are right.
>> Ah!
>> How about haskell-devscripts add @url line to txt file by
>> haddock-collect command?
>> Now debian's hooglize process is...
>>
>> (haddock)=> txt file =(haddock-collect)=> txt file with @url line
>> =(hoogle)=> foo file ...
>>
>> Txt file doesn't know the path for html.
>> But "txt file with @url line" know the path.
>> Then "txt file with @url line" is relocatable for
>> /usr/lib/ghc-doc/haddock/ or /usr/lib/ghc-doc/hoogle/.
>> All libghc-*-doc and ghc-doc packages should have "txt file with @url line"?
>> I think "txt file with @url line" should be named with another extension.
>>
>> I will try to implement it, if get the team's go sign.
>
> Exactly, thanks for giving it a try!
Now, haskell-devscripts support it on darcs repo.
> BTW, are the URLs correct at the moment? When I run
> $ hoogle -l 'intersperse'
> Data.List intersperse :: a -> [a] -> [a] -- http://localhost/cgi-bin/hoogle/file/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-List.html#v:intersperse
> [..]
>
> I would expect
> file://usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-List.html#v:intersperse
> instead. I believe that hoogle should work from the command line fine
> even without a webserver installed.
Because modern web browser blocks links to local files (and
directories) from remote files.
http://kb.mozillazine.org/Links_to_local_pages_do_not_work
Now Debian's hoogle database support that web api show
"http://localhost/cgi-bin/hoogle/file/usr/share/doc/..." path and
command api show "file:/usr/share/doc/..." path.
Best regards,
--
Kiwamu Okabe
Reply to: