Open adamConnerSax opened 2 years ago
Does the first branch of the #if
not work for you? It sure looks nicer :smile:
It might be fine!
But I haven't tested it since I failed to get 9.2.2 up and running because of a ghc bug that affects my vinyl instances in a few places. But if the generic version works, I'd be happier with it as well!
Might be worth testing for correctness and compilation speed? Various vinyl things cause me very slow compilation time--which seems like it's related to GHC issues that are being worked but must be hard because they remain in GHC!
In either case, having an instance in vinyl seems like it would make sense...
Would it be possible to add a Hashable instance for
Rec ElField rs
(with reasonable constraints on thers
)? I've added that here and there but that creates an orphan and I'm not sure I'm doing it right...What I've got now (I've only ever used the "else" branch but that crashes ghc 9.2.2, hence the other version..which might be better?)