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 @
d17ff436
...
@@ -35,6 +35,26 @@
...
@@ -35,6 +35,26 @@
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
...
...