[GHC] #12020: Error message on use of != should suggest use of /=

GHC ghc-devs at haskell.org
Fri May 6 13:34:46 UTC 2016


#12020: Error message on use of != should suggest use of /=
-------------------------------------+-------------------------------------
        Reporter:  mhoermann         |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nomeata):

 This is a good idea, but it immediately leads towards implementing a more
 general concept, where with any name you can list “common misspellings”
 that are in scope with the original name, and are consulted if something
 is not in scope.

 How would that be implemented. How about a pragma like this?
 {{{
   `(!=)` :: a -> a -> Bool
   {-# MISSPELLINGS (!=), (<>) #-}
 }}}
 Naturally, if such a symbol is properly in scope, then the misspelling
 should be ignored.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12020#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list