[GHC] #6065: Suggested type signature causes a type error (even though it appears correct)

GHC cvs-ghc at haskell.org
Tue Jun 5 14:19:28 CEST 2012


#6065: Suggested type signature causes a type error (even though it appears
correct)
---------------------------------------------------------+------------------
    Reporter:  tvynr                                     |       Owner:                           
        Type:  bug                                       |      Status:  new                      
    Priority:  normal                                    |   Milestone:  _|_                      
   Component:  Compiler (Type checker)                   |     Version:  7.4.1                    
    Keywords:  type signature typeclass instance forall  |          Os:  Linux                    
Architecture:  x86_64 (amd64)                            |     Failure:  GHC rejects valid program
  Difficulty:  Unknown                                   |    Testcase:                           
   Blockedby:                                            |    Blocking:                           
     Related:                                            |  
---------------------------------------------------------+------------------

Comment(by tvynr):

 Unfortunately, it seems that the reduced example has lost something;
 applying the typecast to the upcast function in the original MWE.hs (as
 shown in the newly-attached MWE2.hs) does not work; the same type error is
 raised.  Does MWE2.hs have the appropriate typecast or did I do something
 wrong?

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



More information about the Glasgow-haskell-bugs mailing list