darcs

Issue 1342 cabal haddock from darcs source does not work (src/ThisVersion)

Title cabal haddock from darcs source does not work (src/ThisVersion)
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, twb
Assigned To
Topics Devel

Created on 2009-02-03.11:55:31 by kowey, last changed 2009-08-27.14:32:09 by admin.

Messages
msg7263 (view) Author: kowey Date: 2009-02-03.11:55:26
I'm marking this as a 'Community'-related bug, because this means that the
darcs.net API docs are not going to be updated till the bug is fixed (or unless
we get a patch for the autoconf stuff and the new bytestring-mmap)

$ cabal configure
Configuring darcs-2.2.0...
$ cabal haddock
Preprocessing library darcs-2.2.0...
Preprocessing executables for darcs-2.2.0...
Running Haddock for darcs-2.2.0...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: bytestring-mmap-0.2.0,
extensible-exceptions-0.1.1.0, haskeline-0.6.0.1, parsec-3.0.0,
process-1.0.1.1, regex-compat-0.71.0.1, rts-1.0, terminfo-0.3,
utf8-string-0.3.3
Preprocessing library darcs-2.2.0...
Preprocessing executables for darcs-2.2.0...

src/ThisVersion.hs:8:16:
    Not in scope: data constructor `PACKAGE_VERSION'

src/ThisVersion.hs:8:43:
    Not in scope: data constructor `PACKAGE_VERSION_STATE'
haddock: Failed to check module: ThisVersion
msg7269 (view) Author: twb Date: 2009-02-04.01:08:08
On Tue, Feb 03, 2009 at 12:55:26AM +0000, Eric Kow wrote:
> I'm marking this as a 'Community'-related bug, because this means
> that the darcs.net API docs are not going to be updated till the bug
> is fixed (or unless we get a patch for the autoconf stuff and the
> new bytestring-mmap)
>
> $ cabal configure
> Configuring darcs-2.2.0...
> $ cabal haddock
> Preprocessing library darcs-2.2.0...
> Preprocessing executables for darcs-2.2.0...
> Running Haddock for darcs-2.2.0...
> Warning: The documentation for the following packages are not installed. No
> links will be generated to these packages: bytestring-mmap-0.2.0,
> extensible-exceptions-0.1.1.0, haskeline-0.6.0.1, parsec-3.0.0,
> process-1.0.1.1, regex-compat-0.71.0.1, rts-1.0, terminfo-0.3,
> utf8-string-0.3.3

As an aside, regarding this warning I believe you can address it by
changing ~/.cabal/config from

    # documentation: False

to

    documentation: True

...assuming, of course, that you installed these packages via
cabal-install.  This will also require that you have "cabal install
haddock" or otherwise have an adequately recent copy of Haddock
(i.e. not the 0.8 version in Debian Lenny).
msg8087 (view) Author: kowey Date: 2009-08-11.14:19:27
This appears to have been resolved in Darcs-2.3
History
Date User Action Args
2009-02-03 11:55:31koweycreate
2009-02-04 01:08:10twbsetstatus: unread -> unknown
nosy: + twb
messages: + msg7269
2009-08-11 14:19:30koweysetstatus: unknown -> resolved
nosy: kowey, simon, twb, thorkilnaur, dmitry.kurochkin
messages: + msg8087
2009-08-24 15:10:48koweysettopic: + Devel, - Community
nosy: kowey, simon, twb, thorkilnaur, dmitry.kurochkin
2009-08-25 17:40:25adminsetnosy: + darcs-devel, - simon
2009-08-27 14:32:09adminsetnosy: kowey, darcs-devel, twb, thorkilnaur, dmitry.kurochkin