#2357: Implement the Haskell' proposal for polymorphic pattern bindings
-----------------------------------------------------------------------------------+
  Reporter:  simonmar                                                           
   |          Owner:                  
      Type:  task                                                               
   |         Status:  closed          
  Priority:  high                                                               
   |      Milestone:  7.4.1           
 Component:  Compiler (Type checker)                                            
   |        Version:  6.8.2           
Resolution:  fixed                                                              
   |       Keywords:                  
  Testcase:  typecheck/should_compile/T1897a, 
indexed_types/should_compile/T1897b  |      Blockedby:                  
Difficulty:  Unknown                                                            
   |             Os:  Unknown/Multiple
  Blocking:                                                                     
   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown                                                       
   |  
-----------------------------------------------------------------------------------+

Comment(by MartijnVanSteenbergen):

 Thank you, that's great news!

 Just yesterday I wrote three programs which used -XNoMonoPatBinds and
 respectively caused the type-checker to hang, to panic and compiled fine
 but (seemed to) have wrong behaviour, using GHC 7.0.3.

 I've made the panic program as small as I could:

 {{{
 {-# LANGUAGE NoMonoPatBinds #-}

 f :: Show a => a
 (f, _) = undefined

 g :: Show a => a
 g = f
 }}}

 Perhaps you can use it as a test case for the new algorithm.

 If I manage to make the other programs smaller too, I'll post them here.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2357#comment:15>
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