[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

#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