[Haskell-cafe] what if two package contains same module?
Ertugrul Soeylemez
es at ertes.de
Thu Jun 30 20:23:19 CEST 2011
吴兴博 <wuxb45 at 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/
More information about the Haskell-Cafe
mailing list