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

GHC ghc-devs at haskell.org
Wed Jun 18 18:21:17 UTC 2014


#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


More information about the ghc-tickets mailing list