[GHC] #12051: -.-> is accepted as a data constructor
#12051: -.-> is accepted as a data constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | 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? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12051> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12051: -.-> is accepted as a data constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * keywords: => newcomer -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12051#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12051: -.-> is accepted as a data constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * owner: => simonpj -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12051#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12051: -.-> is accepted as a data constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"72b677d31e39f417e4403b1b151f02913f483d32/ghc" 72b677d3/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="72b677d31e39f417e4403b1b151f02913f483d32" Fix Trac #12051 A minor parser issue, allowing a mal-formed data constructor through. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12051#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12051: -.-> is accepted as a data constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: simonpj Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: fixed | Keywords: newcomer 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: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => closed * testcase: => parser/should_fail/T12051 * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12051#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC