[GHC] #10018: Cannot define custom fixity for infix data constructors in GHCi
GHC
ghc-devs at haskell.org
Thu Jul 23 14:03:27 UTC 2015
#10018: Cannot define custom fixity for infix data constructors in GHCi
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.12.1
Component: GHCi | Version: 7.10.1-rc2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Incorrect result | Test Case:
at runtime | ghci/scripts/T10018
Blocked By: | Blocking:
Related Tickets: #9830, #2947, | Differential Revisions: Phab:D1028
#4929 |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari <ben@…>):
In [changeset:"e809ef57d841695f76ab9b2758f7aeb774d6b223/ghc" e809ef5/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="e809ef57d841695f76ab9b2758f7aeb774d6b223"
ghci: fixity declarations for infix data constructors (#10018)
Declaring a custom fixity for an infix data constructor should work:
Prelude> data Infix a b = a :@: b; infixl 4 :@:
This is a followup to #2947, which handled fixity declarations in ghci
statements (e.g. let add = (+); infixl 6 `add`).
Support for declarations (data, type, newtype, class, instance,
deriving, and foreign) was added to GHCi in #4929.
Reviewers: simonpj, austin, thomie
Subscribers: thomie, bgamari
Differential Revision: https://phabricator.haskell.org/D1028
GHC Trac Issues: #10018
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10018#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list