Neil Mitchell ndmitchell at
Sun Jul 26 12:09:19 EDT 2009

>> I haven't seen anyone else claim to use the current more liberal
>> syntax for fields, but I know that I do rather extensively. I would
>> consider:
>> Just A {a = 1}
>> To be confusing, but if you simply omit the space:
>> Just A{a = 1}
>> I now find that perfectly clear and unambiguous.
> I did consider allowing that, perhaps by making "Foo{" a single token,
> but I couldn't see a clean way to do it.

Just to be explicit, I think Just A{...} is clear for me, but really
wouldn't want the parser to depend on the presence or absence of
spaces - that's just not very Haskell like.

Thanks, Neil

More information about the Haskell-prime mailing list