[Haskell-cafe] help with cabal; trying to escape from
duncan.coutts at worc.ox.ac.uk
Wed Sep 23 13:22:13 EDT 2009
On Tue, 2009-09-22 at 17:13 +0200, S. Doaitse Swierstra wrote:
> I am trying to run happstack on my Mac, but unfortunately I am getting
> error messages as described in:
> The cure seems to be to downgrade to network-18.104.22.168, but
> unfortunately my installed cabal depends on network-22.214.171.124.
> I tried to re-install happstack using:
> cabal install happstack --reinstall --constraint="network==126.96.36.199"
> but unfortunately the ghc happily reports to link against
> Loading package parsec-188.8.131.52 ... linking ... done.
> Loading package hsemail-1.3 ... linking ... done.
> Loading package network-184.108.40.206 ... linking ... done.
> Loading package SMTPClient-1.0.1 ... linking ... done.
> Loading package time-1.1.4 ... linking ... done.
> Can someone rescue me?
Is that log output from when you are compiling happstack itself (and
that snippet is the template haskell code being loaded) or is it when
you are loading the final built package in ghci?
If it's the TH bit then it appears to be an instance of this bug:
The problem appears to be that while we compile happstack against
network-220.127.116.11, when it comes to the template haskell stuff, it goes
and picks up the latest version of network instead. GHC HQ have not been
able to reproduce this so it would be useful if we could have more
details on what you are finding. In particular a full log of this
command would be useful:
$ cabal install happstack -v --reinstall --constraint="network==18.104.22.168"
Note the -v so that we will see how cabal invokes ghc. Attach the log to
the ghc ticket above.
Once you've saved the evidence, the workaround is to unregister the
later network version, then ghc cannot possibly pick it.
More information about the Haskell-Cafe