[GHC] #9217: GHCi accepts any operator as a value constructor when enclosed in parens

#9217: GHCi accepts any operator as a value constructor when enclosed in parens ------------------------------------+------------------------------------- Reporter: wz1000 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: Other Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- Eg:- 'data P = (+) Char Char' is accepted by GHCi However 'data P = (-) Char Char' is accepted by GHCi 7.8.2, but is reported to be rejected by GHC 7.6.3 GHCi 7.4 is reported to reject these inputs. GHC 7.8.2 also rejects these inputs. Operators defined this way are inaccessible and do not shadow existing operators. Legal operators(those prefixed by a colon) act normally -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9217 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9217: GHCi accepts any operator as a value constructor when enclosed in parens -------------------------------------+------------------------------------ Reporter: wz1000 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Description changed by wz1000: Old description:
Eg:- 'data P = (+) Char Char' is accepted by GHCi However 'data P = (-) Char Char' is accepted by GHCi 7.8.2, but is reported to be rejected by GHC 7.6.3 GHCi 7.4 is reported to reject these inputs. GHC 7.8.2 also rejects these inputs. Operators defined this way are inaccessible and do not shadow existing operators. Legal operators(those prefixed by a colon) act normally
New description: Eg:- 'data P = (+) Char Char' is accepted by GHCi However 'data P = (-) Char Char' is accepted by GHCi 7.8.2, but is reported to be rejected by GHC 7.6.3 GHCi 7.4 is reported to reject these inputs. GHC 7.8.2 also rejects these inputs. Operators defined this way are inaccessible and do not shadow existing operators. Legal operators(those prefixed by a colon) act normally when surrounded by parens -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9217#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9217: GHCi accepts any operator as a value constructor when enclosed in parens -------------------------------------+------------------------------------ Reporter: wz1000 | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by monoidal): * status: new => closed * resolution: => duplicate Comment: Thanks for the report. It looks to be a duplicate of #8556. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9217#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC