Ticket #1894 (new feature request)
Add a total order on type constructors
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | 7.6.2 |
| Component: | Compiler (Type checker) | Version: | 6.8.1 |
| Keywords: | Cc: | b.hilken@…, sorear | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
Several proposals for ExtensibleRecords can be implemented as libraries if type constructors can be ordered globally.
This proposal is to add built-in types:
data LabelLT data LabelEQ data LabelGT type family LabelCMP
such that, for any two datatypes
data N = N data M = M
the instance LabelCMP N M takes one of the values LabelLT, LabelEQ, LabelGT depending on the lexicographic ordering on the fully-qualified names of N and M.
Change History
Note: See
TracTickets for help on using
tickets.
