[GHC] #2534: Odd probable cause given by type checker

GHC cvs-ghc at haskell.org
Fri Jul 20 13:34:56 CEST 2012


#2534: Odd probable cause given by type checker
----------------------------------------+-----------------------------------
    Reporter:  heatsink                 |       Owner:  simonpj         
        Type:  bug                      |      Status:  new             
    Priority:  lowest                   |   Milestone:  7.6.1           
   Component:  Compiler (Type checker)  |     Version:  6.8.2           
    Keywords:                           |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple         |     Failure:  None/Unknown    
  Difficulty:  Unknown                  |    Testcase:                  
   Blockedby:                           |    Blocking:                  
     Related:                           |  
----------------------------------------+-----------------------------------
Changes (by guest):

  * failure:  => None/Unknown


Comment:

 7.4.1 gives

 {{{
 Prelude> foldr (>>=) [] []

 <interactive>:2:13:
     Couldn't match expected type `a0 -> a0 -> b0'
                 with actual type `[a1]'
     In the second argument of `foldr', namely `[]'
     In the expression: foldr (>>=) [] []
     In an equation for `it': it = foldr (>>=) [] []
 }}}

 I don't know whether the problem was fixed properly, but at least it does
 not manifest for this case.

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



More information about the Glasgow-haskell-bugs mailing list