Re: = vs -

2001-10-10 Thread D. Tweed
On 10 Oct 2001, Ketil Malde wrote: Mark Carroll [EMAIL PROTECTED] writes: On Tue, 9 Oct 2001, Ashley Yakeley wrote: At 2001-10-09 11:55, Mark Carroll wrote: What is the rationale for when Haskell demands a = and when it demands a -? Okay, I can't give you anything formal, but

Re: = vs -

2001-10-10 Thread D. Tweed
On Wed, 10 Oct 2001, D. Tweed wrote: degenerate equality you get from defining the lhs in terms of the rhs. The - is used whenever you've got something on the right that `leads to' to ^left something on the left, eg

Re: Reasons behind the one instance per type limitation

2001-10-10 Thread Diego Dainese
On Wed, 10 Oct 2001 11:20:43 +1300 Brian Boutel [EMAIL PROTECTED] wrote: Iavor S. Diatchki wrote: hello, Why aren't instance declarations handled by the module system like every other symbol, so that a module can decide when to import an instance declaration and when to export

Re: = vs -

2001-10-10 Thread D. Tweed
On Wed, 10 Oct 2001, Mark Carroll wrote: On 10 Oct 2001, Ketil Malde wrote: (snip) function definitions. Perhaps one could have had a syntax like z a = | a == 1 - 1 | a == 2 - 3 instead, as it'd make it more consisten with the case, but I suppose