import Prelude ([](..))

Simon Peyton-Jones simonpj at microsoft.com
Fri Nov 7 10:42:29 EST 2003


| Well, I don't want to redefine list syntax, quite the opposite. I want
| to use regular lists together with my stuff (and "my stuff" doesn't
| include lists at all). So, this is not possible? (Well, it was in ghc 5,
| but I guess that ghc 5 is wrong, then)

Yes it is possible!  You can't redefine list syntax -- it always means "lists".  And it will continue to work regardless of what you import.  Just omit 
	import Prelude( [](..) )

Simon




More information about the Glasgow-haskell-users mailing list