[GHC] #9083: symbol constructors declared prefix missing a leading colon are accepted
GHC
ghc-devs at haskell.org
Wed May 7 04:03:11 UTC 2014
#9083: symbol constructors declared prefix missing a leading colon are accepted
-------------------------------------+-------------------------------------
Reporter: aavogt | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Parser) | Version: 7.8.2
Keywords: | Operating System: Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
-------------------------------------+-------------------------------------
{{{
data M = (++) Int
data N = (⌐) Int
data Ok = (:++) Int -- correctly accepted
}}}
I believe ghc should reject M and N. Instead `M` and `N` are accepted, but
there seems to be no way to use that constructor (besides say a Data
instance)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9083>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list