Package: haskell-devscripts
Version: 0.9.11
Severity: wishlist
Tags: patch
Hi,
If we append --verbose=2 to the call to haddock, we get a nice per-line
status of the file currently being processed instead of a single line:
[..]
Running hscolour for yi-language-0.1.1.0...
creating dist-ghc/doc/html/yi-language
Preprocessing library yi-language-0.1.1.0...
creating dist-ghc/doc/html/yi-language/src
/usr/bin/HsColour -print-css -o[..]/hscolour.css
/usr/bin/HsColour -css -anchor -o[..]/Yi-Buffer-Basic.html
src/Yi/Buffer/Basic.hs
/usr/bin/HsColour -css -anchor -o[..]/Yi-Lexer-Abella.html
dist-ghc/build/Yi/Lexer/Abella.hs
/usr/bin/HsColour -css -anchor -o[..]/Yi-Lexer-Alex.html
src/Yi/Lexer/Alex.hs
[..]
This is nice for larger packages where generating the documentation can
take some time. It no more spam than the per-file ghc status messages
that we currently omit.
Patch attached.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/Dh_Haskell.sh b/Dh_Haskell.sh
index eba8c30..a90132a 100644
--- a/Dh_Haskell.sh
+++ b/Dh_Haskell.sh
@@ -419,7 +419,7 @@ haddock_recipe(){
# local PS5=$PS4; PS4=" + haddock_recipe> "; set -x
hc=`packages_hc`
haddock=`hc_haddock ${hc}`
- [ ! -x /usr/bin/${haddock} ] || run ${DEB_SETUP_BIN_NAME} haddock
--builddir=dist-${hc} --with-haddock=/usr/bin/${haddock} --with-ghc=${hc}
${DEB_HADDOCK_OPTS} || \
+ [ ! -x /usr/bin/${haddock} ] || run ${DEB_SETUP_BIN_NAME} haddock
--builddir=dist-${hc} --with-haddock=/usr/bin/${haddock} --with-ghc=${hc}
--verbose=2 ${DEB_HADDOCK_OPTS} || \
echo "Haddock failed (no modules?), creating empty documentation
package."
# PS4=$PS5
}