
26 Aug
2011
26 Aug
'11
12:06 p.m.
On 26 August 2011 18:00, informationen
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#pac... import "network" Network.Socket 2) Use cabal-dev ghci which will only have packages available that you specify in your .cabal file.