Add FromJSONE
instances for Value
, Env
, and related types
#2213
Labels
C-Project
A larger project, more suitable for experienced contributors.
S-Moderate
The fix or feature would substantially improve user experience.
Z-Feature
A new feature to be added to the game.
Once we merge #2202, contexts (such as those contained in an
Env
) will be serialized to JSON as a single hash value. The only way to read such things back in will be to provide a mapping from hash values to pieces of a context tree, i.e.CtxMap CtxTree t
for somet
, which can be consulted when encountering a hash. In other words, we need instances of the forminstance FromJSONE (CtxMap CtxTree t) ...
as the next step towards #2107 and ultimately #50.Some commented-out code which is an early experiment towards producing such an instance for
Value
can be found inSwarm.Language.JSON
. Unfortunately there doesn't seem to be a way to leverage currently existing automatic code generation to help write these. We might consider actually writing some instances based onGeneric
instead of hand-crafting instances for each type we need.The text was updated successfully, but these errors were encountered: