[GHC] #13870: Empty record construction for record-less constructor gives surprising runtime error (and surprisingly few warnings)

GHC ghc-devs at haskell.org
Fri Sep 15 19:37:22 UTC 2017


#13870: Empty record construction for record-less constructor gives surprising
runtime error (and surprisingly few warnings)
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  sighingnow
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Poor/confusing    |            Test Case:
  error message                      |  deSugar/should_compile/T13870
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D3940
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"9e227bb19b8ceb129ce28e72aa070b3ba85accf7/ghc" 9e227bb/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="9e227bb19b8ceb129ce28e72aa070b3ba85accf7"
 Fix missing fields warnings in empty record construction, fix #13870

 Test Plan: make test TEST=T13870

 Reviewers: RyanGlScott, austin, bgamari, mpickering

 Reviewed By: mpickering

 Subscribers: mpickering, rwbarton, thomie, RyanGlScott

 Tags: #ghc

 GHC Trac Issues: #13870

 Differential Revision: https://phabricator.haskell.org/D3940
 }}}

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


More information about the ghc-tickets mailing list