[GHC] #9177: Suggest Int when user uses int
GHC
ghc-devs at haskell.org
Fri Jun 6 10:33:30 UTC 2014
#9177: Suggest Int when user uses int
-------------------------------------+------------------------------------
Reporter: nomeata | Owner: nomeata
Type: feature request | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets: #1388
-------------------------------------+------------------------------------
Changes (by nomeata):
* status: new => patch
Comment:
Another example of this logic leading the user into a direction that will
cause a different error:
{{{
Prelude> let foo = ()
Prelude> let g = Foo -- good suggestion
<interactive>:5:9:
Not in scope: data constructor ‘Foo’
Perhaps you meant variable ‘foo’ (line 2)
Prelude> let f (Foo x) = x -- bad suggestion
<interactive>:3:8:
Not in scope: data constructor ‘Foo’
Perhaps you meant variable ‘foo’ (line 2)
}}}
Anyways, I pushed it to `wip/T9177` for review (but will likely push to
master in the next days; people can still complain afterwards).
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9177#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list