Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Sep 17, 2015
  1. @thomie

    Docs: make sure all libs are included in index.html (#10879)

    thomie authored
    During the build, when HADDOCK_DOCS=YES, the command 'cd libraries && sh
    gen_contents_index --intree' is run, which calls haddock to generate the
    haddock index at 'libraries/dist-haddock/index.html'.
    What it did before was check the ./packages file for all libraries. The
    problem is that 'base' and 'ghc-prim' were folded into the main repo
    some time ago, hence don't have an entry in the ./packages file anymore.
    As a result, 'base' and 'ghc-prim' were missing from the index.html
    It now simply runs haddock on all the all the `.haddock` files in the
    libraries directory.
    The only risk is that this could include the extra libraries in the
    index.html, if you ever built them in the past (with
    BUILD_EXTRA_PKGS=YES), even though now you want to exclude them (with
    BUILD_EXTRA_PKGS=NO). gen_contents_index doesn't have access to build
    system variables though (PACKAGES_STAGE1+PACKAGES_STAGE2), so fixing
    this would be a little bit fiddly.
    Test Plan:
    'make libraries/dist-haddock/index.html && grep -q base
    libraries/dist-haddock/index.html && echo ok'
    Reviewed by: austin
    Differential Revision:
Commits on Mar 22, 2015
  1. @thoughtpolice

    docs: make gen_contents_index --verbose more verbose

    thoughtpolice authored
    Signed-off-by: Austin Seipp <>
Commits on Jan 29, 2013
  1. @igfoo
Commits on Jun 21, 2012
  1. @thomasdziedzic @pcapriotti
Commits on Jan 8, 2012
  1. @igfoo

    Generate the haddock contents/index pages in a dist-haddock subdirectory

    igfoo authored
    This is tidier, and makes it easier to clean and install them correctly
Commits on Oct 23, 2011
  1. @igfoo

    Follow cabal->Cabal rename, and fix haddock index generation

    igfoo authored
    We now make use of the ghc-packages file when making the haddock index.
Commits on Oct 21, 2011
  1. @simonpj
Commits on Apr 8, 2011
  1. @igfoo

    gen_contents_index: Improve parsing of packages file

    igfoo authored
    We are now more lenient in parsing the packages file, and
    we don't use any GNUisms. Based on a patch from Matthias Kilian.
Commits on Oct 16, 2010
  1. @igfoo

    Only put the boot packages in the haddock contents/index

    igfoo authored
    We don't install dph etc, so don't put them in the doc index.
Commits on Sep 20, 2010
  1. @igfoo
Commits on Jan 8, 2010
  1. @igfoo

    Fix running in-place gen_contents_index; trac #3716

    igfoo authored
    It was making incorrect URLs due to a shell script error.
Commits on Dec 18, 2009
  1. @igfoo

    Fix a braino in a comment

    igfoo authored
Commits on Dec 17, 2009
  1. @igfoo
Commits on Nov 17, 2009
  1. @igfoo

    Fix gen_contents_index on MSYS

    igfoo authored
    On MSYS
        sed 's/.*[ \t]//'
    wasn't matching
    so I've switched to
    which works on Linux, cygwin and MSYS.
Commits on Nov 8, 2009
  1. @igfoo

    Put docs into versioned directory names; fixes trac #3532

    igfoo authored
    You can now have multiple versions of a package installed, and
    gen_contents_index will do the right thing.
Commits on Aug 2, 2009
  1. @igfoo
Commits on Nov 16, 2008
  1. @igfoo

    Fix gen_contents_index when not run inplace; trac #2764

    igfoo authored
    Based on a patch from juhpetersen.
Commits on Oct 19, 2008
  1. @igfoo
Commits on Oct 13, 2008
  1. @igfoo
  2. @igfoo

    Tweak gen_contents_index

    igfoo authored
    It now works again after it has been installed, as well as while it is
    in a source tree.
    After it's been installed it filters out the ghc package, as that
    currently swamps everything else in the index.
Commits on Aug 28, 2008
  1. @igfoo

    Update the build system to handle building and using haddock2

    igfoo authored
    One side-effect of this is that we need to build the install-utils with
    stage2 rather than stage1 as we need the ghc package.
Commits on Dec 12, 2007
  1. @igfoo

    Fix a bug in gen_contents_index

    igfoo authored
    The library doc index thought that the docs were in $module.html, rather
    than $package/$module.html.
Commits on Dec 7, 2007
  1. @igfoo

    Refactor gen_contents_index

    igfoo authored
    Also fixes it with Solaris's sh, spotted by Christian Maeder
Commits on Nov 24, 2007
  1. @igfoo

    Don't make a library documentation prologue

    igfoo authored
    It's far too large now, and no-one complained when 6.8.1 didn't have one.
  2. @igfoo
Commits on Nov 10, 2007
  1. @igfoo
Commits on Oct 25, 2007
  1. fix the links in the library documentation index

    Simon Marlow authored
Commits on Mar 8, 2007
  1. @igfoo

    Build the libraries with cabal

    igfoo authored
Something went wrong with that request. Please try again.