[Haskell-cafe] specifying package name in ghci import?

Michael Vanier mvanier42 at gmail.com
Mon Jun 28 22:29:32 EDT 2010


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




More information about the Haskell-Cafe mailing list