Skip to content

Instantly share code, notes, and snippets.

@willemolding
Created October 19, 2021 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willemolding/cc4d16964ad6e08cf36d537c7b2f83ba to your computer and use it in GitHub Desktop.
Save willemolding/cc4d16964ad6e08cf36d537c7b2f83ba to your computer and use it in GitHub Desktop.
[
"Record",
[
{ "field_name": "first", "field_rule": ["Int"] },
{ "field_name": "second", "field_rule": [
"Record", [{ "field_name": "inner", "field_rule": ["Bool"] }]
]},
{ "field_name": "third", "field_rule": [
"Sum",
[
{ "ctor_name": "one", "index": 0, "ctor_args": [["Int"]] },
{ "ctor_name": "two", "index": 1, "ctor_args": [["Bool"]] }
]
]}
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment