Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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 4,830
    • Issues 4,830
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 447
    • Merge requests 447
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #12400

Closed
Open
Created Jul 16, 2016 by Icelandjack@IcelandjackReporter

Suggest misspelling if a type signature has similarly named binding

Due to clumsy fingers I often run into

mkBinder :: a
mkBidner = undefined

errors with

t1ZE.hs:1:1-8: error: … 
    The type signature for ‘mkBinder’ lacks an accompanying binding
Compilation failed.

Maybe it could mention

note: did you mean 'mkBinder'?

How clang does it

#include <stdio.h>

int main(void)
{
  prinft("hi");
}
% clang -Werror c.c
c.c:5:3: error: implicit declaration of function 'prinft' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  prinft("hi");
  ^
c.c:5:3: note: did you mean 'printf'?
/usr/include/stdio.h:362:12: note: 'printf' declared here
extern int printf (const char *__restrict __format, ...);
           ^
1 error generated.
Edited Mar 10, 2019 by Icelandjack
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking