[GHC] #12400: Suggest misspelling if a type signature has similarly named binding

#12400: Suggest misspelling if a type signature has similarly named binding
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: feature | Status: new
request |
Priority: lowest | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: Incorrect
Unknown/Multiple | warning at compile-time
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Due to clumsy fingers I often run into
{{{#!hs
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
{{{#!c
#include

#12400: Suggest misspelling if a type signature has similarly named binding
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: feature request | Status: new
Priority: lowest | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect | Unknown/Multiple
warning at compile-time | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Description changed by Iceland_jack:
@@ -46,1 +46,0 @@
- baldur@Loki:/tmp$
New description:
Due to clumsy fingers I often run into
{{{#!hs
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
{{{#!c
#include

#12400: Suggest misspelling if a type signature has similarly named binding -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: feature request | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): Great idea! I often make this mistake myself. Any volunteers? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12400#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC