[Haskell-cafe] Re: specifying package name in ghci import?
Maciej Piechotka
uzytkownik2 at gmail.com
Tue Jun 29 03:37:17 EDT 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100629/685750b5/attachment.bin
More information about the Haskell-Cafe
mailing list