Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,360
    • Issues 5,360
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 565
    • Merge requests 565
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #7368
Closed
Open
Issue created Oct 26, 2012 by ChrisN@trac-ChrisN

kindFunResult panic in the

This code:

f  = b  (l  () )

l :: b a -> c b
l = undefined

b :: (a -> b) -> c
b = undefined

Produces the following panic:

/tmp/Test.hs:4:10:
    Couldn't match kind `* -> *' with `*'
    Expected type: a0 -> b0
      Actual type: a0 -> b0
    Kind incompatibility when matching types:
      b_k :: * -> *
      b0 :: *
    In the return type of a call of `l'
    In the first argument of `b', namely `(l ())'

/tmp/Test.hs:4:13:ghc: panic! (the 'impossible' happened)
  (GHC version 7.7.20120909 for x86_64-unknown-linux):
	kindFunResult ghc-prim:GHC.Prim.*{(w) tc 34d}

I don't think this is the same as #6039 (closed) since that test code produces a parse error when I try to compile it (and it is listed as fixed).

Edited Mar 09, 2019 by Simon Peyton Jones
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking