[GHC] #7725: Operators without colons

#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

#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: ----------------------------------------+----------------------------------- Comment(by monoidal): I now realized that with -XDataKinds this declaration is not useless: {{{(&) x y}}} becomes a type of kind {{{A x y}}}. Still, it's rather rough - for example, {{{:i (&)}}} does not work. A possible solution would be implementing GhcKinds/KindsWithoutData and letting {{{data kind A x y = (&) x y}}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7725#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7725: Operators without colons ---------------------------------+------------------------------------------ Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.6.2 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: GHC accepts invalid program Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo): * difficulty: => Unknown * milestone: => 7.8.1 Comment: Thanks for the report. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7725#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC