[GHC] #12966: GHC panics with forall and constraint

#12966: GHC panics with forall and constraint -------------------------------------+------------------------------------- Reporter: xcmw | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{ λ> type Maybeify c = forall d. (c d) => ((~) (Maybe d)) <interactive>:2:39: error:ghc: panic! (the 'impossible' happened) (GHC version 8.0.1 for x86_64-apple-darwin): print_equality ~ Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12966 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12966: GHC panics with forall and constraint -------------------------------------+------------------------------------- Reporter: xcmw | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: wontfix | Keywords: 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 bgamari): * status: new => closed * resolution: => wontfix * milestone: => 8.2.1 Comment: Thanks for the report, xcmw! On `master` this expectedly fails with, {{{ λ> :set -XRankNTypes λ> type Maybeify c = forall d. (c d) => ((~) (Maybe d)) <interactive>:3:39: error: • Expecting one more argument to ‘(~) (Maybe d)’ Expected a type, but ‘(~) (Maybe d)’ has kind ‘* -> Constraint’ • In the type ‘forall d. (c d) => ((~) (Maybe d))’ In the type declaration for ‘Maybeify’ }}} This was likely fixed by #11660, which won't be backported to 8.0. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12966#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12966: GHC panics with forall and constraint -------------------------------------+------------------------------------- Reporter: xcmw | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/T12966 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * testcase: => typecheck/T12966 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12966#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12966: GHC panics with forall and constraint -------------------------------------+------------------------------------- Reporter: xcmw | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/T12966 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): Adding a test is good. For comment:2 do I gather that you have done so? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12966#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12966: GHC panics with forall and constraint -------------------------------------+------------------------------------- Reporter: xcmw | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/T12966 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Yes, it's in my next merge batch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12966#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12966: GHC panics with forall and constraint
-------------------------------------+-------------------------------------
Reporter: xcmw | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 8.0.1
Resolution: wontfix | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
| typecheck/T12966
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC