[Haskell-beginners] hidden packages and ambiguous modules

Dimitri Hendriks diem at xs4all.nl
Fri Sep 6 11:12:16 CEST 2013


Hi,

I have ghc version 7.6.3. 
I am trying to compile some code (not mine) with 

$ ghc --make Main

and get the message:

   Could not find module `Time'
   It is a member of the hidden package `haskell98-2.0.0.2'.

Then I tried:

$ ghc -package haskell98-2.0.0.2 --make Main

resulting in

   Ambiguous module name `Prelude':
     it was found in multiple packages: base haskell98-2.0.0.2

At this point I am stuck. How do I load the right packages without introducing ambiguities?

Thanks!

Greetings, 
Dimitri



More information about the Beginners mailing list