You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Map right now to build up records by field name (irrespective of field order), and I want to extend it to records with more than one constructor. Sum would be perfect for this, because one could represent:
As far as I'm aware, there are packages on hackage that provide generic variant types, but none that provide a generic tagged and sorted variant that's dual to Map. Would it make sense to add this to type-level-sets?
The text was updated successfully, but these errors were encountered:
It would be nice to have a "map-like" Sum/Variant type to go along with
Data.Type.Map
. It could look something like:I'm using
Map
right now to build up records by field name (irrespective of field order), and I want to extend it to records with more than one constructor.Sum
would be perfect for this, because one could represent:as the generic
As far as I'm aware, there are packages on hackage that provide generic variant types, but none that provide a generic tagged and sorted variant that's dual to
Map
. Would it make sense to add this totype-level-sets
?The text was updated successfully, but these errors were encountered: