On Mon, 2010-06-28 at 19:29 -0700, Michael Vanier wrote:
> Hi,
> 
> Quick question about ghci: when I do this at the prompt:
> 
> ghci> :m +Control.Monad.Cont
> 
> I get
> 
>      Ambiguous module name `Control.Monad.Cont':
>        it was found in multiple packages: mtl-1.1.0.2 monads-fd-0.0.0.1
> 
> Is there any way to fix this from within ghci (i.e. not involving 
> mucking with ghc-pkg)?  What I have in mind might be e.g.
> 
> ghci> :m + "mtl" Control.Monad.Cont
> 
> or something similar.
> 
> Thanks,
> 
> Mike

% ghci -hide-package monads-fd
ghci> import Control.Monad.Cont

or

ghci> :set -hide-package mtl
ghci> import Control.Monad.Cont

Regards

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to