[GHC] #13936: initTc: unsolved constraints

#13936: initTc: unsolved constraints --------------------------------------+--------------------------------- Reporter: junkbondtrader | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Keywords: | Operating System: Windows Architecture: x86_64 (amd64) | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: --------------------------------------+--------------------------------- {{{ Prelude> lucky (7.0 :: Num) ghc.exe: panic! (the 'impossible' happened) (GHC version 8.0.2 for x86_64-unknown-mingw32): initTc: unsolved constraints WC {wc_insol = [W] lucky_afgR :: t_afgQ[tau:1] (CHoleCan: lucky) [W] lucky_afhl :: t_afhk[tau:1] (CHoleCan: lucky)} Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} {{{#!hs lucky :: Num -> String lucky 7 = "LUCKY NUMBER SEVEN!" lucky x = "Sorry, you're out of luck, pal!" }}} I believe that above function declaration doesn't actually make sense, but it caused a panic that asked for a bug report so I'm doing it. Apologies for my newness :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13936 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13936: initTc: unsolved constraints -----------------------------------+-------------------------------------- Reporter: junkbondtrader | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -----------------------------------+-------------------------------------- Description changed by junkbondtrader: @@ -19,3 +19,3 @@ - I believe that above function declaration doesn't actually make sense, but - it caused a panic that asked for a bug report so I'm doing it. Apologies - for my newness :) + I believe that the function declaration and invocation about don't + actually make sense, but they caused a panic that asked for a bug report + so I'm doing it. Apologies for my newness :) New description: {{{ Prelude> lucky (7.0 :: Num) ghc.exe: panic! (the 'impossible' happened) (GHC version 8.0.2 for x86_64-unknown-mingw32): initTc: unsolved constraints WC {wc_insol = [W] lucky_afgR :: t_afgQ[tau:1] (CHoleCan: lucky) [W] lucky_afhl :: t_afhk[tau:1] (CHoleCan: lucky)} Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} {{{#!hs lucky :: Num -> String lucky 7 = "LUCKY NUMBER SEVEN!" lucky x = "Sorry, you're out of luck, pal!" }}} I believe that the function declaration and invocation about don't actually make sense, but they caused a panic that asked for a bug report so I'm doing it. Apologies for my newness :) -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13936#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13936: initTc: unsolved constraints -----------------------------------+-------------------------------------- Reporter: junkbondtrader | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -----------------------------------+-------------------------------------- Description changed by junkbondtrader: @@ -19,1 +19,1 @@ - I believe that the function declaration and invocation about don't + I believe that the function declaration and invocation above don't New description: {{{ Prelude> lucky (7.0 :: Num) ghc.exe: panic! (the 'impossible' happened) (GHC version 8.0.2 for x86_64-unknown-mingw32): initTc: unsolved constraints WC {wc_insol = [W] lucky_afgR :: t_afgQ[tau:1] (CHoleCan: lucky) [W] lucky_afhl :: t_afhk[tau:1] (CHoleCan: lucky)} Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} {{{#!hs lucky :: Num -> String lucky 7 = "LUCKY NUMBER SEVEN!" lucky x = "Sorry, you're out of luck, pal!" }}} I believe that the function declaration and invocation above don't actually make sense, but they caused a panic that asked for a bug report so I'm doing it. Apologies for my newness :) -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13936#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13936: initTc: unsolved constraints -------------------------------------+------------------------------------- Reporter: junkbondtrader | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13106 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => closed * os: Windows => Unknown/Multiple * resolution: => duplicate * architecture: x86_64 (amd64) => Unknown/Multiple * related: => #13106 Comment: Thanks for the bug report. I believe this is a duplicate of #13106, which has been fixed in GHC 8.2.1. I don't know what `Num` type you're using here, so I can't confirm that it's fixed in 8.2.1 myself - please reopen if this issue persists in 8.2.1. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13936#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC