[GHC] #9217: GHCi accepts any operator as a value constructor when enclosed in parens
GHC
ghc-devs at haskell.org
Wed Jun 18 18:22:22 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
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
More information about the ghc-tickets
mailing list