RE: punning in GHC?

2002-01-02 Thread Malcolm Wallace
> Punning was removed from Haskell some while ago, > I believe when Haskell 98 was fixed in Feb 1999. Indeed. However, due to popular demand, the feature was retained as an extension in Hugs (turn on with the -98 option) and nhc98 (turn on/off with the -puns/-nopuns options). R

RE: punning in GHC?

2001-12-28 Thread Simon Peyton-Jones
Punning was removed from Haskell some while ago, I believe when Haskell 98 was fixed in Feb 1999. See the Preface section 0.4.1 Simon | -Original Message- | From: Iavor S. Diatchki [mailto:[EMAIL PROTECTED]] | Sent: 26 December 2001 18:55 | To: [EMAIL PROTECTED] | Subject: punning in

punning in GHC?

2001-12-26 Thread Iavor S. Diatchki
hi there, i just discovered that GHC does not support punning with the -fglasgow-exts option. is there another flag to turn this on or has it been completely removed? if so could we have it back - i really like the feature (in patterns anyways) and use it (hugs -98 supports it). i don&#

Re: Punning

1999-07-22 Thread Lennart Augustsson
George Russell wrote:Standard ML, I'm glad to > say, has punning, and I don't remember it causing me any difficulties at > all as a programmer or a compiler writer. (I wrote the parser in the > latest version of MLj.) Please reverse this stupid ban in the next version > o

RE: Punning

1999-07-21 Thread Mark P Jones
Hi George, I believe that punning was taken out of Haskell 98 because of some (IMO, mistaken) concerns about renaming. If memory serves me, somebody had complained that punning `broke alpha-renaming'. For example, you can't treat (\x -> C{x}) as being equivalent to (\y -> C{y

Punning

1999-07-21 Thread George Russell
Is there any chance that someone could send to me in Germany the head of the canting Puritan who outlawed punning in Haskell 98? I'm trying to migrate some code which makes heavy use of punning, and I'm about to yet again (for literally the thirtieth time) fix yet another (subtly

Re: Punning: Don't fix what ain't broken.

1998-02-12 Thread Andreas Rossberg
Tommy Thorn wrote: > > Koen Claessen: > > This brings us to another issue. Doesn't the following definition look > > a bit awkward? > > > > R{ x = x } > > Definitely wierd. The left and right-hand side denotes two different > things, which AFAIK is the only place where `=' behaves like this.

Re: Punning: Don't fix what ain't broken.

1998-02-12 Thread Tommy Thorn
Koen Claessen: > This brings us to another issue. Doesn't the following definition look > a bit awkward? > > R{ x = x } Definitely wierd. The left and right-hand side denotes two different things, which AFAIK is the only place where `=' behaves like this. Wouldn't `<-' have been a better cho

Re: Punning: Don't fix what ain't broken.

1998-02-12 Thread Koen Claessen
| > * R{x} constructs a record, and is equivalent to R{x=x} | > * r{x} updates the x field of record r, and is equivalent to r{x=x} | > * R{x} can be used as a pattern; its meaning is not defined by the | > report, but is presumably supposed to be the same as R{x=x} This brings us to anoth

Punning: Don't fix what ain't broken.

1998-02-11 Thread Tommy Thorn
John Hughes wrote on the Std Haskell board: > `Punning' can be used in three places in Haskell. Suppose a record > type is defined by > > data R = R{x :: Int} > > Then > * R{x} constructs a record, and is equivalent to R{x=x} > * r{x} updates the x field o