[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libghc-parsec{2,3}-doc conflicts



Hi.

On Thu, Dec 20, 2012 at 8:03 AM, Joachim Breitner <nomeata@debian.org> wrote:
> thanks for spotting this. This can be considered a bug in the new hoogle
> support; when placing stuff in /usr/lib/ghc-doc/hoogle, it should use
> DEB_CABAL_PACKAGE instead of the existing filename.
>
> Kiwamu, can you look at the issue? I guess changing
>         find debian/$(notdir $@)/$(DEB_HADDOCK_HTML_DIR) -name "*.txt" \
>                 -printf "%p $(DEB_HOOGLE_TXT_DIR)/%f\n" >> debian/libghc-$(CABAL_PACKAGE)-doc.links
>
> to
>         find debian/$(notdir $@)/$(DEB_HADDOCK_HTML_DIR) -name "*.txt" \
>                  -printf "%p $(DEB_HOOGLE_TXT_DIR)/$(DEB_CABAL_PACKAGE).txt\n" >> debian/libghc-$(CABAL_PACKAGE)-doc.links
> could help (and break if there were multiple hoogle files, but why
> should they), but this needs testing.

I think this changing is better.
Hoogle command does not see filename.

$ ls
libghc-parsec2-doc.txt  libghc-parsec3-doc.txt
casper$ pwd
/usr/lib/ghc-doc/hoogle
$ ls
libghc-parsec2-doc.txt  libghc-parsec3-doc.txt
$ sudo update-hoogle
Starting keyword
Converting keyword... done
Finished keyword
Data generation complete
Converting databases... done
Combining 3 databases
$ hoogle parsec
Text.Parsec.Prim type Parsec s u = ParsecT s u Identity
Text.Parsec.Prim parsecMap :: (a -> b) -> ParsecT s u m a -> ParsecT s u m b
Text.Parsec.Prim data ParsecT s u m a
Text.Parsec module Text.Parsec
Text.ParserCombinators.Parsec module Text.ParserCombinators.Parsec
Text.Parsec.Prim runParsecT :: Monad m => ParsecT s u m a -> State s u
-> m (Consumed (m (Reply s u a)))

Thanks,
--
Kiwamu Okabe


Reply to: