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,413
    • Issues 5,413
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 603
    • Merge requests 603
  • 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
  • #11548
Closed
Open
Issue created Feb 06, 2016 by mniip@mniipReporter

Absolutely misleading error message on kind error

module Bug where

import Data.Proxy

fun :: Proxy a -> ()
fun Proxy = ()

bug :: ()
bug = fun (Proxy :: Proxy Maybe)
[1 of 1] Compiling Bug              ( Bug.hs, Bug.o )

Bug.hs:9:12: error:
    • Expected kind ‘Proxy Maybe’,
        but ‘Data.Proxy.Proxy :: Proxy Maybe’ has kind ‘Proxy Maybe’
    • In the first argument of ‘fun’, namely ‘(Proxy :: Proxy Maybe)’
      In the expression: fun (Proxy :: Proxy Maybe)
      In an equation for ‘bug’: bug = fun (Proxy :: Proxy Maybe)
  1. 10 gives the appropriate Couldn't match kind ‘* -> *’ with ‘*’ message.
Trac metadata
Trac field Value
Version 8.1
Type Bug
TypeOfFailure OtherFailure
Priority high
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking