[Haskell-cafe] Cabal version constraint seems to be ignored.
creswick at gmail.com
Wed Jan 22 17:07:10 UTC 2014
On Wed, Jan 22, 2014 at 4:43 AM, Carlo Hamalainen <
carlo at carlo-hamalainen.net> wrote:
> If I hide Cabal-126.96.36.199 then things work ok:
Does the behavior change if you build with a sandbox? (without hiding
either Cabal via ghc-pkg?)
If I had to hazard a guess, I'd say that the inability to specify
dependencies for the build process are causing this problem, even though
you're using build-type: simple; one cabal is used to set cabal-specific
details in the cabal_macros.h file (which I'm assuming you're using
somewhere in the source?) and another is picked based on the build-depends.
That's just a guess, though... and if true, it's a wrinkle in the
interactions between build-system dependencies and program build-time
dependencies that I haven't run across before (even with Cabal-dev!).
> $ ghc-pkg hide Cabal-188.8.131.52
> $ cabal install
> $ ghc-imported-from .... (runs as expected)
> But I can't expect a user to know that they have to hide Cabal-184.108.40.206.
> Is this actually a GHC bug or have I stuffed up my
> ghc-imported-from.cabal file?
> Carlo Hamalainen
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe