StricterLabelledFieldSyntax
Sittampalam, Ganesh
ganesh.sittampalam at credit-suisse.com
Mon Jul 27 03:27:08 EDT 2009
Ian Lynagh wrote:
> Hi all,
>
> I've made a ticket and proposal page for making the labelled field
> syntax stricter, e.g. making this illegal:
>
> data A = A {x :: Int}
>
> y :: Maybe A
> y = Just A {x = 5}
+1: The precedence here is an ugly wart. It's particularly annoying when
teaching Haskell syntax to newbies; the simple rule "juxtaposition binds
tighter than everything else" doesn't quite work.
Ganesh
===============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================
More information about the Haskell-prime
mailing list