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

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


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- monads-fd-

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.



More information about the Haskell-Cafe mailing list