#2187: Top-level bindings are broken for polymorphic values
----------------------+-----------------------------------------------------
 Reporter:  yallop    |          Owner:             
     Type:  bug       |         Status:  new        
 Priority:  normal    |      Milestone:  6.10 branch
Component:  Compiler  |        Version:  6.8.2      
 Severity:  major     |     Resolution:             
 Keywords:            |     Difficulty:  Unknown    
 Testcase:            |   Architecture:  Unknown    
       Os:  Unknown   |  
----------------------+-----------------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown
  * milestone:  => 6.10 branch

Comment:

 Thanks for the report. Your first example is deliberately broken (relative
 to Haskell98); see
 http://www.haskell.org/ghc/docs/latest/html/users_guide/monomorphism.html
 for details, or use `-XNoMonoPatBinds` to get the Haskell98-specified
 behaviour.

 If you give a type signature for `x` then I would have expected it to
 work; Simon?

 yallop, I assume you ran into this problem in a real program?

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