[GHC] #12020: Error message on use of != should suggest use of /=
GHC
ghc-devs at haskell.org
Fri May 6 12:48:50 UTC 2016
#12020: Error message on use of != should suggest use of /=
-------------------------------------+-------------------------------------
Reporter: mhoermann | Owner:
Type: feature | Status: new
request |
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.3
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Currently when one uses != instead of /= it comes up with this error
message
{{{
Not in scope: ‘!=’
Perhaps you meant one of these:
‘Map.!’ (imported from Data.Map), ‘>=’ (imported from Prelude),
‘==’ (imported from Prelude)
}}}
Considering != is very common for unequal in other languages there should
be a more helpful hint to use /= instead of or in addition to the current
generic symbol error.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12020>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list