#1123: Impredicativity bug: forall not hoisted properly
--------------------------------------------------+-------------------------
 Reporter:  Ashley Yakeley <[EMAIL PROTECTED]>  |          Owner:  simonpj    
     Type:  bug                                   |         Status:  new        
 Priority:  normal                                |      Milestone:  6.10 branch
Component:  Compiler                              |        Version:  6.6        
 Severity:  normal                                |     Resolution:             
 Keywords:                                        |     Difficulty:  Unknown    
 Testcase:                                        |   Architecture:  Unknown    
       Os:  Unknown                               |  
--------------------------------------------------+-------------------------
Comment (by simonpj):

 No, this is a different problem.  The type sig for `runA2` says that the
 argument must be polymorphic, but then you are matching against a
 monomorphic pattern.  This is sound -- the type signature is more
 restrictive than the pattern -- but GHC doesn't currently support it,
 because I've not found any convincing uses.   What's wrong with
 {{{
   runA2 :: forall s A s -> ()
 }}}
 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1123#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to