
#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 goldfire): Replying to [comment:7 ezyang]:
It's worth mentioning that you can almost directly simulate the desired syntax here using record wildcards: ...
Indeed. This pattern is the one and only time I've made profitable use of record wildcards. In general, I think this one isn't quite worth its weight. But, @Iceland_jack, I encourage you to use the ghc-proposals process for ideas like this, as it's now the official place for the community to weigh in on new language ideas. Posting to Trac reaches a smaller subset of the community. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12376#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler