StricterLabelledFieldSyntax

Isaac Dupree ml at isaac.cedarswampstudios.org
Sat Jul 25 21:45:18 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}
> 
> and requiring this instead:
> 
>     data A = A {x :: Int}
> 
>     y :: Maybe A
>     y = Just (A {x = 5})

and, as currently, "(f some expression) {x=5}" still requires those 
parentheses also?  Although depending on the surroundings, after this 
proposal, it might need to become "((f some expression) {x=5})"

-Isaac


More information about the Haskell-prime mailing list