[GHC] #4929: Support all top-level declarations in GHCi

GHC ghc-devs at haskell.org
Thu Jul 23 14:03:27 UTC 2015


#4929: Support all top-level declarations in GHCi
-------------------------------------+---------------------------------
        Reporter:  simonmar          |         Owner:  simonmar
            Type:  task              |        Status:  closed
        Priority:  high              |     Milestone:  7.4.1
       Component:  GHCi              |       Version:  7.0.1
      Resolution:  fixed             |      Keywords:
Operating System:  Unknown/Multiple  |  Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |     Test Case:
      Blocked By:                    |      Blocking:
-------------------------------------+---------------------------------

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/4929#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list