[GHC] #10431: EqualityConstraints extension?

GHC ghc-devs at haskell.org
Mon May 18 14:41:46 UTC 2015


#10431: EqualityConstraints extension?
-------------------------------------+-------------------------------------
              Reporter:  adamgundry  |             Owner:
                  Type:  feature     |            Status:  new
  request                            |         Milestone:  7.12.1
              Priority:  normal      |           Version:  7.11
             Component:  Compiler    |  Operating System:  Unknown/Multiple
  (Type checker)                     |   Type of failure:  None/Unknown
              Keywords:              |        Blocked By:
          Architecture:              |   Related Tickets:
  Unknown/Multiple                   |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 At the moment, writing an equality constraint in a type requires at least
 one of the `GADTs` or `TypeFamilies` extensions. However, each of these
 has other effects. Could we have an `EqualityConstraints` extension to
 permit equality constraints in types, but neither GADTs nor type families?
 Presumably this extension should imply `MonoLocalBinds`.

 The `GADTs` extension could then become precisely the conjunction of
 `GADTSyntax`, `EqualityConstraints` and `ExistentialQuantification`.

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


More information about the ghc-tickets mailing list