patch applied (cabal): rejig location of package interfaces for haddock

Ian Lynagh igloo at earth.li
Tue May 15 10:34:21 EDT 2007


On Tue, May 15, 2007 at 04:09:39AM -0700, Ross Paterson wrote:
> Tue May 15 04:08:33 PDT 2007  Ross Paterson <ross at soi.city.ac.uk>
>   * rejig location of package interfaces for haddock

The GHC Windows fast buildbot now fails with:

    ifBuildable/ifBuildable base setup/Setup haddock
    Preprocessing library base-2.1...
    Running Haddock for base-2.1...
    ..\..\utils\ghc-pkg\ghc-pkg-inplace.bat field rts-1.0 haddock-interfaces
    ..\..\utils\ghc-pkg\ghc-pkg-inplace.bat field rts-1.0 haddock-html
    Setup: ../../bootstrapping.Cabal/Distribution/Simple.hs:(422,21)-(424,23):
    Non-exhaustive patterns in case

That's the last 3 lines of:

    let getField pkgId f = do
            let name = showPackageId pkgId
            s <- rawSystemStdout verbose pkgTool ["field", name, f]
            return $ case words s of
                _:v:_ -> v
                [] -> []

so presumably we're getting a single word from ghc-pkg.


Thanks
Ian



More information about the Cvs-libraries mailing list