[GHC] #8055: ghc: panic! (the 'impossible' happened) [..] kindFunResult

#8055: ghc: panic! (the 'impossible' happened) [..] kindFunResult ----------------------------------+--------------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: MacOS X Architecture: x86_64 (amd64) | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+--------------------------------- Hello The following code causes GHC (and GHCi) to panic. I'm not sure about the correctness of the code itself. I came upon it because of a misplaced `$`. {{{ GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. λ> :m +Data.Either Control.Applicative Control.Monad.Trans λ> :t either error id <$> lift ghc: panic! (the 'impossible' happened) (GHC version 7.6.3 for x86_64-apple-darwin): kindFunResult <<details unavailable>> Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug λ> }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8055 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8055: ghc: panic! (the 'impossible' happened) [..] kindFunResult ---------------------------------+---------------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: duplicate | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Changes (by thoughtpolice): * status: new => closed * resolution: => duplicate Comment: Thanks. This is correctly rejected in HEAD: {{{ Prelude> :m +Data.Either Control.Applicative Control.Monad.Trans Prelude Data.Either Control.Applicative Control.Monad.Trans> :t either error id <$> lift <interactive>:1:21: Kind incompatibility when matching types: t0 :: (* -> *) -> * -> * Either :: * -> * -> * Expected type: m a -> Either [Char] a Actual type: m a -> t0 m a In the second argument of ‛(<$>)’, namely ‛lift’ In the expression: either error id <$> lift }}} See also: #7927, #7920, #7905, #7696, and #7513 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8055#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC