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

GHC ghc-devs at haskell.org
Mon Aug 8 03:26:51 UTC 2016


#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


More information about the ghc-tickets mailing list