[Haskell-cafe] Cabal will not find HaXml

Mads Lindstrøm mads_lindstroem at yahoo.dk
Sun Feb 28 08:41:03 EST 2010


When I do:

> cabal list --simple-output | grep -i "HaXml 1.20"

I get:

> HaXml 1.20
> HaXml 1.20.1
> HaXml 1.20.2

But when running:

> runhaskell Setup.hs configure

I get:

> Configuring XrcAccessors-0.0...
> Setup.hs: At least the following dependencies are missing:
> HaXml -any

My cabal file looks like:

Executable XrcAccessors
  Main-is:           XrcAccessors.hs
  Build-Depends:     base==3.0.*, pretty==1.0.*, HaXml
  hs-source-dirs:    src

This is very confusing to me. Why will Cabal not find HaXml when running
Setup.hs, but do find it when running "cabal list" ?

My Setup.hs looks like:

> import Distribution.Simple
> main = defaultMain

I have tried reinstalling HaXml, but that do not help. I have noticed
one thing though, when doing:

> ghc-pkg

I get output like:

    Cabal-, HUnit-, QuickCheck-, array-,
    base-, base-, bytestring-, containers-,
    directory-, (dph-base-0.3), (dph-par-0.3),
    Cabal-, Cabal-, Diff-0.1.2, HDBC-2.1.1,
    HDBC-odbc-, HDBC-odbc-, HTTP-4000.0.4, HUnit-,
    HaXml-1.20.2, MetaHDBC-0.1.0, QuickCheck-, SQLLib-0.0,

That is, HaXml shows itself in
the /home/ghc6103/.ghc/x86_64-linux-6.10.3/package.conf list, but not in
the /home/ghc6103/.ghc/x86_64-linux-6.10.3/package.conf . Is this the
problem and how do I fix it?


Mads Lindstrøm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100228/e9a0e5cd/attachment.bin

More information about the Haskell-Cafe mailing list