[Haskell-cafe] help with cabal; trying to escape from configuration hell

Duncan Coutts 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:
> http://code.google.com/p/happstack/issues/detail?id=88
> The cure seems to be to downgrade to network-, but  
> unfortunately my installed cabal depends on network-
> I tried to re-install happstack using:
> cabal install happstack --reinstall --constraint="network=="
> but unfortunately the ghc happily reports to link against  
> network-
> ...
> Loading package parsec- ... linking ... done.
> Loading package hsemail-1.3 ... linking ... done.
> Loading package network- ... 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-, 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=="

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 mailing list