hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/decode/variants.json
{
"name": "hydra.core.decode.variants",
"metadata": {"description": "Term decoders for hydra.core.variants", "comments": [], "seeAlso": [], "provisions": []},
"dependencies": [
{"module": "hydra.core.extract.model"},
{"module": "hydra.core.lexical"},
{"module": "hydra.core.rewriting"},
{"module": "hydra.core.variants"},
{"module": "hydra.core.util"}],
"definitions": [
{
"term": {
"name": "hydra.core.decode.variants.literalVariant",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected union"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.variants.LiteralVariant"}}},
"cases": [
{
"name": "inject",
"handler": {
"lambda": {
"parameter": "inj",
"domain": {"variable": "hydra.core.model.Injection"},
"body": {
"let": {
"bindings": [
{
"name": "field",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Injection", "fieldName": "field"}},
"argument": {"variable": "inj"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Field"}, "constraints": []}},
{
"name": "fname",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "name"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Name"}, "constraints": []}},
{
"name": "fterm",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "term"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Term"}, "constraints": []}},
{
"name": "variantMap",
"term": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.maps.fromList"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
"argument": {
"list": [
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "binary"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.LiteralVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.LiteralVariant", "field": {"name": "binary", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "boolean"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.LiteralVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.LiteralVariant", "field": {"name": "boolean", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "decimal"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.LiteralVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.LiteralVariant", "field": {"name": "decimal", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "float"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.LiteralVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.LiteralVariant", "field": {"name": "float", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "integer"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.LiteralVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.LiteralVariant", "field": {"name": "integer", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "string"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.LiteralVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.LiteralVariant", "field": {"name": "string", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}}]}}},
"typeScheme": {
"variables": [],
"body": {
"map": {
"keys": {"variable": "hydra.core.model.Name"},
"values": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"variable": "hydra.core.lib.optionals.match"},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.maps.lookup"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}}}},
"argument": {"variable": "fname"}}},
"argument": {"variable": "variantMap"}}}}},
"argument": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {
"application": {
"function": {"variable": "hydra.core.lib.strings.concat"},
"argument": {
"list": [
{"literal": {"string": "no such field "}},
{"application": {"function": {"unwrap": "hydra.core.model.Name"}, "argument": {"variable": "fname"}}},
{"literal": {"string": " in union"}}]}}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.variants.LiteralVariant"}}}}},
"argument": {
"lambda": {
"parameter": "f",
"domain": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.LiteralVariant"}}}}},
"body": {"application": {"function": {"variable": "f"}, "argument": {"variable": "fterm"}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [
{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.variants.LiteralVariant"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.variants.termVariant",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected union"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"cases": [
{
"name": "inject",
"handler": {
"lambda": {
"parameter": "inj",
"domain": {"variable": "hydra.core.model.Injection"},
"body": {
"let": {
"bindings": [
{
"name": "field",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Injection", "fieldName": "field"}},
"argument": {"variable": "inj"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Field"}, "constraints": []}},
{
"name": "fname",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "name"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Name"}, "constraints": []}},
{
"name": "fterm",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "term"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Term"}, "constraints": []}},
{
"name": "variantMap",
"term": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.maps.fromList"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
"argument": {
"list": [
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "annotated"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "annotated", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "application"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "application", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "cases"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "cases", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "either"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "either", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "inject"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "inject", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "lambda"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "lambda", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "let"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "let", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "list"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "list", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "literal"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "literal", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "map"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "map", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "optional"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "optional", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "pair"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "pair", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "project"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "project", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "record"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "record", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "set"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "set", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeApplication"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {
"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "typeApplication", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "typeLambda"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "typeLambda", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "unit"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "unit", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "unwrap"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "unwrap", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "variable"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "variable", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "wrap"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TermVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TermVariant", "field": {"name": "wrap", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}}]}}},
"typeScheme": {
"variables": [],
"body": {
"map": {
"keys": {"variable": "hydra.core.model.Name"},
"values": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"variable": "hydra.core.lib.optionals.match"},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.maps.lookup"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}}}},
"argument": {"variable": "fname"}}},
"argument": {"variable": "variantMap"}}}}},
"argument": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {
"application": {
"function": {"variable": "hydra.core.lib.strings.concat"},
"argument": {
"list": [
{"literal": {"string": "no such field "}},
{"application": {"function": {"unwrap": "hydra.core.model.Name"}, "argument": {"variable": "fname"}}},
{"literal": {"string": " in union"}}]}}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.variants.TermVariant"}}}}},
"argument": {
"lambda": {
"parameter": "f",
"domain": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TermVariant"}}}}},
"body": {"application": {"function": {"variable": "f"}, "argument": {"variable": "fterm"}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.variants.TermVariant"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.variants.typeVariant",
"signature": {
"typeParameters": [],
"parameters": [
{"name": "arg0", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
{"name": "arg1", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
"result": {
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}},
"body": {
"annotated": {
"body": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "raw",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.either"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}},
"argument": {
"lambda": {
"parameter": "err",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"left": {"variable": "err"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
"argument": {
"lambda": {
"parameter": "stripped",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Term",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected union"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"cases": [
{
"name": "inject",
"handler": {
"lambda": {
"parameter": "inj",
"domain": {"variable": "hydra.core.model.Injection"},
"body": {
"let": {
"bindings": [
{
"name": "field",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Injection", "fieldName": "field"}},
"argument": {"variable": "inj"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Field"}, "constraints": []}},
{
"name": "fname",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "name"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Name"}, "constraints": []}},
{
"name": "fterm",
"term": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.Field", "fieldName": "term"}},
"argument": {"variable": "field"}}},
"typeScheme": {"variables": [], "body": {"variable": "hydra.core.model.Term"}, "constraints": []}},
{
"name": "variantMap",
"term": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.maps.fromList"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
"argument": {
"list": [
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "annotated"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "annotated", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "application"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "application", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "effect"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "effect", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "either"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "either", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "forall"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "forall", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "function"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "function", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "list"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "list", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "literal"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "literal", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "map"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "map", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "optional"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "optional", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "pair"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "pair", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "record"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "record", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "set"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "set", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "union"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "union", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "unit"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "unit", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "variable"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "variable", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "void"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "void", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "wrap"}}}},
"second": {
"lambda": {
"parameter": "input",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": "unit"}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": "unit",
"body": {"inject": {"typeName": "hydra.core.variants.TypeVariant", "field": {"name": "wrap", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"lambda": {
"parameter": "cx",
"domain": {"variable": "hydra.core.graph.Graph"},
"body": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.model.Term"},
"body": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.extract.model.decodeUnit"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "t"}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {"variable": "input"}}}}}}}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}}]}}},
"typeScheme": {
"variables": [],
"body": {
"map": {
"keys": {"variable": "hydra.core.model.Name"},
"values": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"variable": "hydra.core.lib.optionals.match"},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.maps.lookup"}, "type": {"variable": "hydra.core.model.Name"}}},
"type": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}}}},
"argument": {"variable": "fname"}}},
"argument": {"variable": "variantMap"}}}}},
"argument": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {
"wrap": {
"typeName": "hydra.core.errors.DecodingError",
"body": {
"application": {
"function": {"variable": "hydra.core.lib.strings.concat"},
"argument": {
"list": [
{"literal": {"string": "no such field "}},
{"application": {"function": {"unwrap": "hydra.core.model.Name"}, "argument": {"variable": "fname"}}},
{"literal": {"string": " in union"}}]}}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.variants.TypeVariant"}}}}},
"argument": {
"lambda": {
"parameter": "f",
"domain": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.variants.TypeVariant"}}}}},
"body": {"application": {"function": {"variable": "f"}, "argument": {"variable": "fterm"}}}}}}}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.variants.TypeVariant"}}}]}}}}}]}