[Haskell-cafe] Ambiguous module name `System.Directory'
chrisdone at googlemail.com
Fri Aug 26 18:06:08 CEST 2011
On 26 August 2011 18:00, informationen <informationen at gmx.de> wrote:
> i am using ghc version 7.0.3 and a pretty recent version of the
> Whenever i use the System.Directory module, i run into this
> Ambiguous module name `System.Directory':
> it was found in multiple packages:
> system-fileio-0.2.1 directory-22.214.171.124
> How can i resolve this conflict permamently (i know about :set -hide-package
> ... )? And shouldn't there be a rule in the
> haskell platform which forbids modules of the same name?
1) Use PackageImports:
import "network" Network.Socket
2) Use cabal-dev ghci which will only have packages available that you
specify in your .cabal file.
More information about the Haskell-Cafe