Skip to content
GitLab
Explore
Sign in
Register
Changes
Page history
Edit StricterLabelledFieldSyntax
authored
Jul 26, 2009
by
ian@well-typed.com
Hide whitespace changes
Inline
Side-by-side
stricter-labelled-field-syntax.md
View page @
307b5722
...
@@ -42,6 +42,28 @@
...
@@ -42,6 +42,28 @@
Make the labelled field syntax stricter, so that unclear code is illegal.
Make the labelled field syntax stricter, so that unclear code is illegal.
Instead of:
```
wiki
data A = A {x :: Int}
y :: Maybe A
y = Just A {x = 5}
```
you would need to write:
```
wiki
data A = A {x :: Int}
y :: Maybe A
y = Just (A {x = 5})
```
## Description
## Description
...
...