Regression: Syntax error in -ddump-minimal-imports for records in GHC 8.0
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) )
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | nh2 |
Operating system | |
Architecture |