Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Peyton Jones
committed
Jun 25, 2013
1 parent
2d0d426
commit b8749bb
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module T7989 where | ||
|
||
data A = A {a0, a1 :: Int} | ||
data B = B {b0, b1 :: Int} | ||
|
||
f x = x { a0 = 3, a1 = 2, b0 = 4, b1 = 5 } | ||
|
||
data T = T1 { x,y,v :: Int} | T2 { y,z,v :: Int } | T3 { z,x,v :: Int} | ||
g a = a { x=0, y=0, z=0, v=0 } | ||
|
||
h a = a { x=0, a0=0 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
T7989.hs:6:7: | ||
No constructor has all these fields: ‛a0’, ‛b0’ | ||
In the expression: x {a0 = 3, a1 = 2, b0 = 4, b1 = 5} | ||
In an equation for ‛f’: f x = x {a0 = 3, a1 = 2, b0 = 4, b1 = 5} | ||
|
||
T7989.hs:9:7: | ||
No constructor has all these fields: ‛x’, ‛y’, ‛z’ | ||
In the expression: a {x = 0, y = 0, z = 0, v = 0} | ||
In an equation for ‛g’: g a = a {x = 0, y = 0, z = 0, v = 0} | ||
|
||
T7989.hs:11:7: | ||
No constructor has all these fields: ‛x’, ‛a0’ | ||
In the expression: a {x = 0, a0 = 0} | ||
In an equation for ‛h’: h a = a {x = 0, a0 = 0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters