2 ms·
I also took a stab at the versioning challenge back in 2019 and wrote a library with a friend in a fevered evening for type safe migrations in Haskell [0]. In
by agentultra 8mo ago
I also took a stab at the versioning challenge back in 2019 and wrote a library with a friend in a fevered evening for type safe migrations in Haskell [0].
In practice it’s a bit tricky to use because it doesn’t enforce encoding the schema identifier in the serialized payload. Oops.
But between that, automated typing from examples, and refinement it might be possible to develop a system that can manage to validate the serialized data against the parser and have the serialization data appear in the type. At that point you could query the whole system.
[0] https://hackage.haskell.org/packages/tag/library https://hackage.haskell.org/packages/tag/library
- sjakobi 8mo agoWrong link?!
- agentultra 8mo agoOops! Sheesh. Phone. Sorry, here’s the proper link: https://hackage.haskell.org/package/DataVersion https://hackage.haskell.org/package/DataVersion