import prefers module in package over local module

Simon Marlow simonmarhaskell at gmail.com
Wed May 3 06:53:19 EDT 2006


I'm afraid I don't understand: there's no Pretty module in the standard 
libraries, only Text.PrettyPrint.

Could you describe in more detail what's going wrong?  (provide example 
code and exact command lines, cut & paste error messages).

Cheers,
	Simon

Michael Marte wrote:
> Simon,
> 
> I checked the version of ghc I use: It's 6.4.1.
> 
> Michael
> 
> Simon Marlow wrote:
> 
>> Michael Marte wrote:
>>
>>> I am migrating a project from ghc 6.2 to ghc 6.4. This project has a 
>>> module called Pretty and that's where my problems start. When 
>>> importing Pretty, ghc does not consider my local definition but the 
>>> Pretty module from the standard library (which is an alias for 
>>> Text.PrettyPrint.HughesPJ). Is this behaviour intended or is it a 
>>> bug? Can I change it? If it is intended, can somebody explain the 
>>> rationale to me?
>>
>>
>> >
>> > BTW, I am using -hidir and -odir and the latest Debian package
>> > containing ghc 6.4.1.
>> >
>> > Thank you,
>> > Michael
>>
>> This was the behaviour in 6.4, if I recall correctly, but it was fixed 
>> in 6.4.1.  Are you definitely using 6.4.1? (you said 6.4 at the 
>> beginning of the message).
>>
>> Cheers,
>>     Simon



More information about the Glasgow-haskell-users mailing list