[GHC] #8749: Pattern synonyms crash GHCi
#8749: Pattern synonyms crash GHCi ------------------------------------+------------------------------------- Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- {{{ ghci -XPatternSynonyms
let pattern P x = x }}}
causes a panic. I understand pattern synonyms are currently unsupported in GHCi, but we should give an error message, not a panic. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8749> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8749: Pattern synonyms crash GHCi -------------------------------------+------------------------------------ Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by cactus): The real problem seems to me to be the fact that local pattern synonym definitions are not rejected. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8749#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8749: Pattern synonyms crash GHCi -------------------------------------+------------------------------------ Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: 8757 Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Dr. ERDI Gergo <gergo@…>): In [changeset:"e0a55415545074bc7a757462624079f54f7785e2/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="e0a55415545074bc7a757462624079f54f7785e2" Issue an error for pattern synonyms defined in a local scope (#8757) This also fixes the internal crash when using pattern synonyms in GHCi (#8749) }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8749#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8749: Pattern synonyms crash GHCi -------------------------------------+------------------------------------ Reporter: monoidal | Owner: Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: 8757 Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by cactus): * status: new => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8749#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8749: Pattern synonyms crash GHCi -------------------------------------+------------------------------------ Reporter: monoidal | Owner: Type: bug | Status: merge Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: 8757 Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by monoidal): * version: 7.7 => 7.8.1-rc1 * milestone: => 7.8.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8749#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8749: Pattern synonyms crash GHCi -------------------------------------+------------------------------------ Reporter: monoidal | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.8.1-rc1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: 8757 Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8749#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8749: Pattern synonyms crash GHCi -------------------------------------+------------------------------------- Reporter: monoidal | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.8.1-rc1 Resolution: fixed | Keywords: PatternSynonyms Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: | Blocked By: 8757 None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by cactus): * keywords: => PatternSynonyms -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8749#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC