Thanks for the bug report.  What you say is all too true.  It's fixed
in my working copy; pending the next release I guess you'll just have to
work around it.  Sorry.

Simon

| From: Tomasz Cholewo <[EMAIL PROTECTED]>
| Date: Tue, 20 May 1997 05:10:04 GMT
| Hi,
| 
| ghc-2.03 cannot compile the following code, which I think is correct
| according to the Report:
| 
| > data X = A {a :: Int} | B {a :: Int}
| 
| The error message is: 
| 
|     Conflicting definitions for:  a
|       Defined at bug4.lhs:2
|       Defined at bug4.lhs:2
| 
| In addition the following snippet
| 
| > data X = A {a :: Int}
| > y = let A {a} = x
| >     in a
| 
| fails with:
|     bug4.lhs:4:5: Not a valid LHS on input: "in"
| 
| Rewriting it as an explicit 
| 
| > y = case x of
| >       A {a} -> a
| 
| seems to help.
|       
| I guess that the support for labeled fields is not quite implemented
| yet?  In Hugs the above two examples are working.
| 
| -- Tomasz Cholewo

Reply via email to