Package: libghc6-hunit-doc
Version: 1.1.1-2
Severity: grave

  The only documentation files contained in the libghc6-hunit-doc
package are some index files and an empty documentation page for the
module Main.  The module itself is completely undocumented, unless a
link to the JUnit page counts.

  I've debugged this a little, and it looks like the problem is that
cabal first preprocesses the source with ghc6 -E.  This turns the code
into non-literate Haskell and expands preprocessor macros.  Both of
these are necessary, since in my tests haddock doesn't seem to
understand literate Haskell code.

  The problem is that ghc6 -E *also* strips all the literate comments.

  I was able to work around this with some awful sed magic that
pre-strips the literate comments:

sed -e '/^$\|^[^>#]/s/^/-- /' -e 's/^>//

  Presumably you could do the same thing in a Cabal hook, such as
preHaddockHook.



  This is separate from the issue of the documentation being a little
difficult to find (the bug I just filed a moment ago).

  Daniel

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libghc6-hunit-doc depends on:
ii  ghc6-doc [libghc6-base-doc]   6.6.1-2    Documentation for the Glasgow Hask

libghc6-hunit-doc recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to