[GHC] #7725: Operators without colons
GHC
cvs-ghc at haskell.org
Tue Feb 26 22:08:11 CET 2013
#7725: Operators without colons
----------------------------------------+-----------------------------------
Reporter: monoidal | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.6.2 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: GHC accepts invalid program | Blockedby:
Blocking: | Related:
----------------------------------------+-----------------------------------
This code is accepted:
{{{
data A x y = (&) x y
}}}
but it's wrong - as far as I know operators on the value level are
constructors iff they start with a colon `(:&)`. (In fact {{{a = (&)}}}
reports "Not in scope: (&)".)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7725>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list