cabal: confusing dependencies conflict between ghc-6.10.1 and
sebf at informatik.uni-kiel.de
Fri May 29 08:10:15 EDT 2009
On Apr 3, 2009, at 12:20 PM, Sebastian Fischer wrote:
>>> There is something wrong: according to this message, the package
>>> ghc-6.10.1 requires both process==184.108.40.206 and process==220.127.116.11.
>> Please see Duncan's email .
> Thanks for the hint! Unregistering QuickCheck-18.104.22.168 and
> haskell98-22.214.171.124 from the user package db (those packages are
> present in the global package db with the same version) solved this
> problem for me.
I ran into this problem again. Tired of parsing the output of 'ghc-pkg
list' manually for duplicates, I wrote the following script that may
be of use for others too:
#! /usr/bin/env runhaskell
> import Data.List ( intersect )
> import Control.Monad ( liftM )
> import System.Process ( system, readProcess )
> main = do global <- list "global"
> user <- list "user"
> mapM_ unregister $ intersect global user
> list db = liftM words $
> readProcess "ghc-pkg" ["--simple-output","--"+
> unregister pkg = system $ "ghc-pkg --user unregister " ++ pkg
You can save it as executable literate Haskell file. It will
unregister those packages from the user database that are present in
the global package database with the exact same version.
Underestimating the novelty of the future is a time-honored tradition.
More information about the Libraries