From 80ea03950881438935c60726911f8d00fab7d8f6 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 5 Sep 2010 23:24:09 +0000 Subject: [PATCH] docs: note multiple versions of same package issue --- MANUAL.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/MANUAL.markdown b/MANUAL.markdown index 088e58ad3..5d1d5d90d 100644 --- a/MANUAL.markdown +++ b/MANUAL.markdown @@ -1025,6 +1025,21 @@ sailing. Here are some known issues and things to try: Look for the cause of the failure near the end of the output. If it's not apparent, try again with `-v2` or `-v3` for more verbose output. +- **This package indirectly depends on multiple versions of the same package.** + You may have previously installed some of hledger's dependencies + depending on different versions of (eg) parsec. Then cabal install hledger gives + an error like this: + + Warning: This package indirectly depends on multiple versions of the same + package. This is highly likely to cause a compile failure. + package yesod-0.5.0.3 requires parsec-2.1.0.1 + package csv-0.1.1 requires parsec-3.1.0 + ... + + The above example could be resolved by, eg: + + $ cabal install yesod --reinstall --constraint 'parsec == 3.1.0" + - **cabal fails to resolve dependencies.** It's possible for cabal to get confused, eg if you have installed/updated many cabal package versions or GHC itself. You can