[GHC] #10520: RecordWildCards causes “is not a (visible) field of constructor” in ghci

#10520: RecordWildCards causes “is not a (visible) field of constructor” in ghci -------------------------------------+------------------------------------- Reporter: ion1 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.10.1 Keywords: | Operating System: Linux RecordWildCards | Type of failure: GHC rejects Architecture: x86_64 | valid program (amd64) | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- {{{ % ghc -ignore-dot-ghci -e 'data Foo = Bar { baz :: Integer } deriving Show' -e 'Bar 42' -e '(Bar 42){ baz = 43 }' -e 'Bar { baz = 42 }' Bar {baz = 42} Bar {baz = 43} Bar {baz = 42} }}} {{{ % ghc -ignore-dot-ghci -XRecordWildCards -e 'data Foo = Bar { baz :: Integer } deriving Show' -e 'Bar 42' -e '(Bar 42){ baz = 43 }' -e 'Bar { baz = 42 }' Bar {baz = 42} Bar {baz = 43} <interactive>:1:7: ‘baz’ is not a (visible) field of constructor ‘Bar’ }}} {{{ % ghc --version The Glorious Glasgow Haskell Compilation System, version 7.10.1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10520 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10520: RecordWildCards causes “is not a (visible) field of constructor” in ghci
-------------------------------------+-------------------------------------
Reporter: ion1 | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.10.1
Resolution: | Keywords:
Operating System: Linux | RecordWildCards
Type of failure: GHC rejects | Architecture: x86_64
valid program | (amd64)
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#10520: RecordWildCards causes “is not a (visible) field of constructor” in ghci -------------------------------------+------------------------------------- Reporter: ion1 | Owner: Type: bug | Status: merge Priority: normal | Milestone: 7.10.3 Component: GHCi | Version: 7.10.1 Resolution: | Keywords: Operating System: Linux | RecordWildCards Type of failure: GHC rejects | Architecture: x86_64 valid program | (amd64) Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => merge * milestone: => 7.10.3 Comment: Thanks for the report. Hopefully can merge into 7.10.3 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10520#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10520: RecordWildCards causes “is not a (visible) field of constructor” in ghci -------------------------------------+------------------------------------- Reporter: ion1 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.3 Component: GHCi | Version: 7.10.1 Resolution: fixed | Keywords: | RecordWildCards Operating System: Linux | Architecture: x86_64 Type of failure: GHC rejects | (amd64) valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: This was merged to `ghc-7.10` as f71f770. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10520#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10520: RecordWildCards causes “is not a (visible) field of constructor” in ghci -------------------------------------+------------------------------------- Reporter: ion1 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.3 Component: GHCi | Version: 7.10.1 Resolution: fixed | Keywords: | RecordWildCards Operating System: Linux | Architecture: x86_64 Type of failure: GHC rejects | (amd64) valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: I'm afraid this isn't entirely trivial to backport as it requires 9b73cb16485f331d9dc1f37826c6d503e24a5b0b which is a rather major rework. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10520#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10520: RecordWildCards causes “is not a (visible) field of constructor” in ghci -------------------------------------+------------------------------------- Reporter: ion1 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: GHCi | Version: 7.10.1 Resolution: fixed | Keywords: | RecordWildCards Operating System: Linux | Architecture: x86_64 Type of failure: GHC rejects | (amd64) valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: 7.10.3 => 8.0.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10520#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10520: RecordWildCards causes “is not a (visible) field of constructor” in ghci
-------------------------------------+-------------------------------------
Reporter: ion1 | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 8.0.1
Component: GHCi | Version: 7.10.1
Resolution: fixed | Keywords:
| RecordWildCards
Operating System: Linux | Architecture: x86_64
Type of failure: GHC rejects | (amd64)
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC