吴兴博 <wux...@gmail.com> wrote: > it seems that cabal install different into different folders. if two > package contains same module name, can they all exist? since cabal > have no "remvoe" or "uninstall". how can I hide some packages?
Alternatively for small programs for which you don't use a Cabal file you can use the PackageImports extension (-XPackageImports) and import modules from specific packages. For example both the 'pool' and the 'resource-pool' packages provide a Data.Pool module. You can choose to import the one from 'resource-pool' using this: import "resource-pool" Data.Pool Greets, Ertugrul -- nightmare = unsafePerformIO (getWrongWife >>= sex) http://ertes.de/ _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe