[GHC] #12376: Allow function definitions in record syntax

GHC ghc-devs at haskell.org
Mon Jul 11 09:10:35 UTC 2016


#12376: Allow function definitions in record syntax
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 One more piece of syntactic sugar.  I see no difficulty in principle.

 What about recursion?  Currently record fields are in scope in the RHS,
 but only as record selectors, not as the function being defined.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12376#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list