Opened 3 years ago

Closed 3 years ago

#12051 closed bug (fixed)

-.-> is accepted as a data constructor

Reported by: mpickering Owned by: simonpj
Priority: normal Milestone:
Component: Compiler Version: 7.10.3
Keywords: newcomer Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case: parser/should_fail/T12051
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


data A = (-.->) Int

Is accepted by GHC without any complaints but -.-> is not a valid data constructor as it doesn't start with a :.

Anyone have any ideas about what is going on here?

Change History (4)

comment:1 Changed 3 years ago by mpickering

Keywords: newcomer added

comment:2 Changed 3 years ago by simonpj

Owner: set to simonpj

comment:3 Changed 3 years ago by Simon Peyton Jones <simonpj@…>

In 72b677d3/ghc:

Fix Trac #12051

A minor parser issue, allowing a mal-formed data constructor

comment:4 Changed 3 years ago by simonpj

Resolution: fixed
Status: newclosed
Test Case: parser/should_fail/T12051
Note: See TracTickets for help on using tickets.