[GHC] #8026: DatatypeContexts should be fixed, not deprecated

GHC ghc-devs at haskell.org
Wed Jul 3 11:05:07 CEST 2013


#8026: DatatypeContexts should be fixed, not deprecated
-------------------------------+--------------------------------------------
  Reporter:  gidyn             |          Owner:                  
      Type:  feature request   |         Status:  new             
  Priority:  normal            |      Milestone:                  
 Component:  Compiler          |        Version:  7.6.3           
Resolution:                    |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------

Comment(by monoidal):

 @gidyn: You probably meant `x :: Eq a => Pair a -> a`.

 Consider isaacdupree's `equal (undefined :: Pair (() -> ()))`. Surely this
 should be legal: `undefined` inhabits every type. Yet attempting to
 evaluate it leads to using `==` from `Eq (() -> ())` which does not exist.

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



More information about the ghc-tickets mailing list