[GHC] #4940: Bad error message using poly pat bind with MonoPatBinds

GHC cvs-ghc at haskell.org
Tue Feb 1 16:05:17 CET 2011


#4940: Bad error message using poly pat bind with MonoPatBinds
----------------------------------------+-----------------------------------
    Reporter:  batterseapower           |        Owner:                                   
        Type:  feature request          |       Status:  merge                            
    Priority:  normal                   |    Milestone:                                   
   Component:  Compiler (Type checker)  |      Version:  7.0.1                            
    Keywords:                           |     Testcase:                                   
   Blockedby:                           |   Difficulty:                                   
          Os:  Unknown/Multiple         |     Blocking:                                   
Architecture:  Unknown/Multiple         |      Failure:  Incorrect warning at compile-time
----------------------------------------+-----------------------------------
Changes (by simonpj):

  * status:  new => merge


Comment:

 This fixes item (1)
 {{{
 Tue Feb  1 12:29:20 GMT 2011  simonpj at microsoft.com
   * Fix type checker error message

   See Trac #4940. We had a message
        The lambda expression `\ x -> x' has one argument one argument,
   repeating the "one argument" part.  Easy fix.

     M ./compiler/typecheck/TcMatches.lhs -4 +4
 }}}
 Please merge to stable branch -- and then leave the ticket open for
 (2),(3)

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



More information about the Glasgow-haskell-bugs mailing list