[Haskell-cafe] Ambiguous module name `System.Directory'

Christopher Done chrisdone at googlemail.com
Fri Aug 26 18:06:08 CEST 2011


On 26 August 2011 18:00, informationen <informationen at gmx.de> wrote:
> Hi,
>
> i am using ghc version 7.0.3 and a pretty recent version of the
> haskell-platform.
>
> Whenever i use the System.Directory module, i run into this
> conflict:
>
> Ambiguous module name `System.Directory':
>        it was found in multiple packages:
>            system-fileio-0.2.1 directory-1.1.0.0
>
> 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:
http://www.haskell.org/ghc/docs/7.0.3/html/users_guide/syntax-extns.html#package-imports

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 mailing list