[Haskell-cafe] Cabal will not find HaXml
Mads Lindstrøm
mads_lindstroem at yahoo.dk
Sun Feb 28 08:41:03 EST 2010
Hi
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:
<snip>
Executable XrcAccessors
Main-is: XrcAccessors.hs
Build-Depends: base==3.0.*, pretty==1.0.*, HaXml
hs-source-dirs: src
</snip>
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:
<snip>
/home/ghc6103/lib/ghc-6.10.3/./package.conf:
Cabal-1.6.0.3, HUnit-1.2.0.3, QuickCheck-1.2.0.0, array-0.2.0.0,
base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4, containers-0.2.0.1,
directory-1.0.0.3, (dph-base-0.3), (dph-par-0.3),
</snip>
<snip>
/home/ghc6103/.ghc/x86_64-linux-6.10.3/package.conf:
Cabal-1.6.0.2, Cabal-1.8.0.2, Diff-0.1.2, HDBC-2.1.1,
HDBC-odbc-1.1.6.0, HDBC-odbc-2.1.0.0, HTTP-4000.0.4, HUnit-1.2.2.1,
HaXml-1.20.2, MetaHDBC-0.1.0, QuickCheck-2.1.0.3, SQLLib-0.0,
</snip>
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?
Greetings,
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