
Hi
Maybe implicitly always adding import qualified Prelude as SecretNameNoOneWillEverUse would be a hack that would fix that?
It is definitely a hack, in an area of the compiler which feels like a pile of hacks has built up until they are almost ready to topple over :-)
But none of that is necessary for the basic hack - IS IT POSSIBLE? (even if so, is it too hacky? I believe Jhc *always* implicitly imports something like Jhc.Prelude that contains definitions of [] and a few other things, in addition to the standard Prelude stuff, and that feels *right*, to me)
We came to the decision that the right thing is to always import qualified Prelude, regardless of if the user does import Prelude(), then always bind to fully qualified names. This is the solution we tried, and we failed completely. Thanks Neil