Refactoring Evolu: Serializing SqliteQuery as a Key in Sets and Maps
Hi, I'm refactoring Evolu, and I have this type:
I'm using SqliteQuery as a key in sets and maps. I was serializing it as a string, but that should not be necessary with the Effect data type(s).
Should I define SqliteQuery as Data.Case? Or should I write custom Equivalence or Hash? What would you do? Thank you.
I'm using SqliteQuery as a key in sets and maps. I was serializing it as a string, but that should not be necessary with the Effect data type(s).
Should I define SqliteQuery as Data.Case? Or should I write custom Equivalence or Hash? What would you do? Thank you.
