[ ghc-Bugs-847471 ] Extra comma allowed in named fields

SourceForge.net noreply at sourceforge.net
Sat Nov 22 20:20:35 EST 2003


Bugs item #847471, was opened at 2003-11-22 17:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=847471&group_id=8032

Category: Compiler (Parser)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Extra comma allowed in named fields

Initial Comment:
The following has a syntax error (extra comma after the 
brace in line 5) undetected by ghc 6.0.1:
===================================
module Main(main) where

data X = X { x :: Int }

main = let d = X {, x = 2} in putStr "bug"
===================================


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=847471&group_id=8032


More information about the Glasgow-haskell-bugs mailing list