[GHC] #12474: Regression: Syntax error in -ddump-minimal-imports for records in GHC 8.0

#12474: Regression: Syntax error in -ddump-minimal-imports for records in GHC 8.0 -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I found a bug in GHC 8.0.1. File: {{{ import Data.Version main = print (versionBranch undefined, versionTags undefined) }}} Run: {{{ ~/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc --make Main.hs -ddump- minimal-imports && cat Main.imports import Data.Version ( Version(versionTags versionBranch) ) }}} See how there's a comma missing after `versionTags`? This happens for all record functions. It works fine in GHC 7.10.3: {{{ ~/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc --make Main.hs -ddump- minimal-imports && cat Main.imports import Data.Version ( Version(versionBranch, versionTags) ) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12474 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12474: Regression: Syntax error in -ddump-minimal-imports for records in GHC 8.0
-------------------------------------+-------------------------------------
Reporter: nh2 | Owner:
Type: bug | Status: merge
Priority: normal | Milestone: 8.0.2
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: |
-------------------------------------+-------------------------------------
Changes (by simonpj):
* status: new => merge
Comment:
Fixed in HEAD by
{{{
commit 018487e686793e22efd595491be5b5305ed2b9c0
Author: Matthew Pickering

#12474: Regression: Syntax error in -ddump-minimal-imports for records in GHC 8.0 -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 Resolution: fixed | 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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.0` as 1d46fd5e4897301f3def5267e46e7d07fb85590b. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12474#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC