[GHC] #12842: DatatypeContexts in data types and data families

GHC ghc-devs at haskell.org
Wed Nov 16 19:14:58 UTC 2016


#12842: DatatypeContexts in data types and data families
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  task              |               Status:  new
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 Yeah I know they're going to be removed, I just would have thought that
 given

 {{{#!hs
 data (a ~ b) => a :~: b = Refl
 }}}

 the type of `Refl` should be `Refl :: (a ~ b) => a :~: b` similar to

 {{{#!hs
 data a :~: b where
   Refl :: a :~: a
 }}}

 I'll close

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


More information about the ghc-tickets mailing list