I'm writing an extensible records library for fun and profit. I have two potential 'Monoid' instances I can give my 'HashRecord' type. Which would you prefer to see?
The record type is essentially HashRecord f xs
, where xs
is a type level list of (key :: Symbol) =: (value :: *)
pairs, and f
is a type constructor that each entry in the record is contained in.