[Haskell-cafe] Re: Completely confused by cabal

Colin Paul Adams colin at colina.demon.co.uk
Sun Mar 22 08:40:20 EDT 2009

>>>>> "Duncan" == Duncan Coutts <duncan.coutts at worc.ox.ac.uk> writes:

    Duncan> On Sun, 2009-03-22 at 11:51 +0000, Colin Paul Adams wrote:
    >> >>>>> "Achim" == Achim Schneider <barsoap at web.de> writes:
    Achim> Colin Paul Adams <colin at colina.demon.co.uk> wrote:
> >> So why doesn't it find packages then, when they are installed?
    >> >> 
    Achim> I've got no idea, what exactly are you trying to do, and
    Achim> how?
    >> I'm trying to re-compile ghc 6.11 and it doesn't find parsec.

    Duncan> The ghc build system is fairly self contained. I'm not
    Duncan> sure if it cares if your bootstrapping compiler has parsec
    Duncan> or not. If the ghc build system is looking for the parsec
    Duncan> modules then I very much doubt it is going to be looking
    Duncan> in any parsec package that your bootstrapping compiler
    Duncan> might have registered (either globally or per-user). It'll
    Duncan> be looking for the sources that it comes bundled with.

    Duncan> A quick look in my ghc source tree reveals:

    Duncan> ghc/utils/ext-core/Language/Core/ParsecParser.hs
    Duncan> ghc/libraries/parsec/Text/ParserCombinators/Parsec.hs

    Duncan> The first one, utils/ext-core is importing parsec. Is that
    Duncan> what you're trying to build? The parsec package is an

I assumed that would be built anyway.

    Duncan> extralib so wouldn't be present unless you did ./darcs-all
    Duncan> --extra get

    Duncan> If you can't get the ghc build going try asking on the ghc
    Duncan> users mailing list. Give as much detail as you can about
    Duncan> what you did so people can give you more helpful advice.

Colin Adams
Preston Lancashire

More information about the Haskell-Cafe mailing list