diff --git a/Stackage-Server-FAQ.md b/Stackage-Server-FAQ.md index 358cd9b..6e52273 100644 --- a/Stackage-Server-FAQ.md +++ b/Stackage-Server-FAQ.md @@ -51,4 +51,36 @@ We'll format this more nicely in the future, for now it's just a collection of b * [Stackage Server](https://www.fpcomplete.com/blog/2014/05/stackage-server) * [Announcing Stackage Server](https://www.fpcomplete.com/blog/2014/08/announcing-stackage-server) -* [The woes of multiple package versions](http://www.yesodweb.com/blog/2014/09/woes-multiple-package-versions) \ No newline at end of file +* [The woes of multiple package versions](http://www.yesodweb.com/blog/2014/09/woes-multiple-package-versions) + +# Homebrew users + +Homebrew ships with a Cabal version newer than Stackage expects: + + $ ghc --version + The Glorious Glasgow Haskell Compilation System, version 7.8.3 + + $ cabal --version + cabal-install version 1.20.0.4 + using version 1.20.0.3 of the Cabal library + +Stackage uses the Cabal version that ships with GHC, so when trying to install something you may get an error like: + + Resolving dependencies... + cabal: Could not resolve dependencies: + next goal: Cabal (user goal) + rejecting: Cabal-1.18.1.4/installed-d6c... (global constraint requires + ==1.18.1.3) + trying: Cabal-1.18.1.3/installed-476... + trying: yesod-bin-1.4.2 (user goal) + next goal: ghc (dependency of yesod-bin-1.4.2) + rejecting: ghc-7.8.3/installed-1d5... (conflict: + Cabal==1.18.1.3/installed-476..., ghc => Cabal==1.18.1.4/installed-d6c...) + Dependency tree exhaustively searched. + +The workaround is to edit your `cabal.config` with + +``` diff +- Cabal ==1.18.1.3, ++ Cabal ==1.18.1.4, +```