[GHC] #10018: Cannot define custom fixity for infix data constructors in GHCi
GHC
ghc-devs at haskell.org
Mon May 25 23:36:46 UTC 2015
#10018: Cannot define custom fixity for infix data constructors in GHCi
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.10.1-rc2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: #9830 | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by RyanGlScott):
I'm not sure if this is related, but when I tried declaring the above data
type with {{{infixr 5 :@:}}} first, GHCi fails to parse it:
{{{
$ ghci
GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help
λ> infixr 5 :@:; data Infix a b = a :@: b deriving Show
<interactive>:2:1: parse error on input ‘infixr’
}}}
It's possible that this bug wouldn't manifest itself if the {{{infixr}}}
declaration appeared first, but GHCi won't allow this in the first place,
so it's impossible to tell.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10018#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list