[GHC] #11985: Core lint error on record syntax update/pattern synonym
#11985: Core lint error on record syntax update/pattern synonym -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Keywords: | Operating System: Unknown/Multiple PatternSynonyms | Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- While on a flight I discovered some errors, if you load a file using record syntax for pattern synonyms: {{{#!hs module Foo where pattern Pair{x, y} = (x, y) }}} and load it with `-dcore-lint`: {{{ $ ghci -dcore-lint -ignore-dot-ghci -XPatternSynonyms /tmp/Foo.hs GHCi, version 8.1.20160419: http://www.haskell.org/ghc/ :? for help [1 of 1] Compiling Foo ( /tmp/Foo.hs, interpreted ) Ok, modules loaded: Foo. *Foo> (1, 2) { x = 10 } *** Core Lint errors : in result of desugar expression *** [...] }}} full error message attached. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11985> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11985: Core lint error on record syntax update/pattern synonym -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: | PatternSynonyms 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 Iceland_jack): * Attachment "Foo.log" added. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11985> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11985: Core lint error on record syntax update/pattern synonym -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: | PatternSynonyms Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mpickering): This only happens when run in ghci. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11985#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11985: Core lint error on record syntax update/pattern synonym -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: mpickering Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: | PatternSynonyms 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 mpickering): * owner: => mpickering -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11985#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11985: Core lint error on record syntax update/pattern synonym -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: mpickering Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: | PatternSynonyms Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2147 Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * status: new => patch * differential: => Phab:D2147 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11985#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11985: Core lint error on record syntax update/pattern synonym -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: mpickering Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: | PatternSynonyms Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2147 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"cd85dc84b36bc5f600eb1b3805024a5b2443e1a3/ghc" cd85dc84/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="cd85dc84b36bc5f600eb1b3805024a5b2443e1a3" Make sure record pattern synonym selectors are in scope in GHCi. Beforehand, when a record pattern synonym was defined in GHCi the selectors would not be in scope. This is because of `is_sub_bndr` in `HscTypes.icExtendGblRdrEnv` was throwing away the selectors. This was broken by the fix to #10520 but it is easy to resolve. Reviewers: austin, bgamari, simonpj Reviewed By: simonpj Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2147 GHC Trac Issues: #11985 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11985#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11985: Core lint error on record syntax update/pattern synonym -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: mpickering Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: | PatternSynonyms Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2147 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed * milestone: => 8.2.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11985#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC