import Prelude ([](..))
Simon Peyton-Jones
simonpj at microsoft.com
Fri Nov 7 11:12:36 EST 2003
That's it! We fixed GHC6 to follow the Report in this respect, a change that affects very few people. Sorry it wasn't clearer.
S
| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org [mailto:glasgow-haskell-users-
| bounces at haskell.org] On Behalf Of Martin Sjögren
| Sent: 07 November 2003 11:01
| To: glasgow-haskell-users at haskell.org
| Subject: RE: import Prelude ([](..))
|
| fre 2003-11-07 klockan 11.42 skrev Simon Peyton-Jones:
| > | 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( [](..) )
|
| Ah! I see. I was getting "constructor not in scope: `:'" in ghc5, but in
| ghc6 it does indeed work.
|
| So, the bottom line here is that with ghc6 I *cannot* have the import,
| but in ghc5 I *must* have it? Gah.
|
| Thanks for your help.
|
|
| /Martin
| --
| Martin Sjögren
| sjogren at debian.org -- marvin at dum.chalmers.se
| GPG key: http://www.mdstud.chalmers.se/~md9ms/gpg.html
| let hello = "hello" : hello in putStr (unlines hello)
More information about the Glasgow-haskell-users
mailing list