#2748: Fundep-laden code compiled and ran fine in 6.8, fails in 6.10
---------------------------------+------------------------------------------
    Reporter:  sedillard         |        Owner:                  
        Type:  bug               |       Status:  closed          
    Priority:  normal            |    Milestone:                  
   Component:  Compiler          |      Version:  6.10.1          
    Severity:  normal            |   Resolution:  invalid         
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by sedillard):

 Since you were so kind as to track down my type error, I've indulged your
 curiosity (and my own) and rewritten it using type functions. I can't say
 that it's any more readable, except for the use of type equality
 constraints (~) which is exactly the thing I was wishing for. I didn't
 know about them until I started reading up on type families, but they're
 also really useful for fundep code. Maybe they should have their own
 LANGUAGE pragma and -X option?

 Anyway, thanks again.

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