|
|
|
|
|
by agentultra
134 days 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 |
|