hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/decode/errors.json
{
"name": "hydra.core.decode.errors",
"metadata": {"description": "Term decoders for hydra.core.errors", "comments": [], "seeAlso": [], "provisions": []},
"dependencies": [
{"module": "hydra.core.extract.model"},
{"module": "hydra.core.lexical"},
{"module": "hydra.core.rewriting"},
{"module": "hydra.core.errors"},
{"module": "hydra.core.util"},
{"module": "hydra.core.decode.error.checking"},
{"module": "hydra.core.decode.error.model"},
{"module": "hydra.core.decode.model"},
{"module": "hydra.core.decode.paths"}],
"definitions": [
{
"term": {
"name": "hydra.core.decode.errors.decodingError",
"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.errors.DecodingError"}}}}},
"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.errors.DecodingError"}}}}},
"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.errors.DecodingError"}}}}}}},
"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 wrapped type"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"cases": [
{
"name": "wrap",
"handler": {
"lambda": {
"parameter": "wrappedTerm",
"domain": {"variable": "hydra.core.model.WrappedTerm"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"literal": "string"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "b",
"domain": {"literal": "string"},
"body": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"variable": "b"}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"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": {"literal": "string"}}}}},
"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": {"literal": "string"}}}}}}},
"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 literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.WrappedTerm", "fieldName": "body"}},
"argument": {"variable": "wrappedTerm"}}}}}}}}}}]}},
"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.errors.DecodingError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.emptyListError",
"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": "unit"}}}},
"body": {
"annotated": {
"body": {
"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"}}}}}}},
"annotation": {
"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "Decoder for hydra.core.errors.EmptyListError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.error",
"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.errors.Error"}}}}},
"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.errors.Error"}}}}},
"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.errors.Error"}}}}}}},
"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.errors.Error"}}},
"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.errors.Error"}}}}}}},
"argument": {
"list": [
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "checking"}}}},
"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": {"variable": "hydra.core.error.checking.CheckingError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.checking.CheckingError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "checking", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.checking.checkingError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "decoding"}}}},
"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": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.DecodingError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "decoding", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.errors.decodingError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "duplicateBinding"}}}},
"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": {"variable": "hydra.core.error.model.DuplicateBindingError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.model.DuplicateBindingError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "duplicateBinding", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.model.duplicateBindingError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "duplicateField"}}}},
"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": {"variable": "hydra.core.error.model.DuplicateFieldError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.model.DuplicateFieldError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "duplicateField", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.model.duplicateFieldError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "extraction"}}}},
"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": {"variable": "hydra.core.errors.ExtractionError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.ExtractionError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "extraction", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.errors.extractionError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "inference"}}}},
"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": {"variable": "hydra.core.errors.InferenceError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.InferenceError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "inference", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.errors.inferenceError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "invalidLiteral"}}}},
"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": {"variable": "hydra.core.error.model.InvalidLiteralError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.model.InvalidLiteralError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "invalidLiteral", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.model.invalidLiteralError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "other"}}}},
"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": {"variable": "hydra.core.errors.OtherError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.OtherError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "other", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.errors.otherError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "resolution"}}}},
"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": {"variable": "hydra.core.errors.ResolutionError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.ResolutionError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "resolution", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.errors.resolutionError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "undefinedField"}}}},
"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": {"variable": "hydra.core.error.model.UndefinedFieldError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.model.UndefinedFieldError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "undefinedField", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.model.undefinedFieldError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "undefinedTermVariable"}}}},
"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": {"variable": "hydra.core.error.model.UndefinedTermVariableError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.model.UndefinedTermVariableError"},
"body": {
"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "undefinedTermVariable", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.model.undefinedTermVariableError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "untypedTermVariable"}}}},
"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": {"variable": "hydra.core.error.model.UntypedTermVariableError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.model.UntypedTermVariableError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "untypedTermVariable", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.model.untypedTermVariableError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "unexpectedTermVariant"}}}},
"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": {"variable": "hydra.core.error.model.UnexpectedTermVariantError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.model.UnexpectedTermVariantError"},
"body": {
"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "unexpectedTermVariant", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.model.unexpectedTermVariantError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "unexpectedTypeVariant"}}}},
"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": {"variable": "hydra.core.error.model.UnexpectedTypeVariantError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.model.UnexpectedTypeVariantError"},
"body": {
"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "unexpectedTypeVariant", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.model.unexpectedTypeVariantError"}, "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.errors.Error"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "unification"}}}},
"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": {"variable": "hydra.core.errors.UnificationError"}}},
"type": {"variable": "hydra.core.errors.Error"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.UnificationError"},
"body": {"inject": {"typeName": "hydra.core.errors.Error", "field": {"name": "unification", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.errors.unificationError"}, "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.errors.Error"}}}}}}}]}}},
"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.errors.Error"}}}}}}},
"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.errors.Error"}}}}}}},
"type": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.errors.Error"}}}}},
"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.errors.Error"}}}}}}},
"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.errors.Error"}}}}},
"argument": {
"lambda": {
"parameter": "f",
"domain": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.errors.Error"}}}}},
"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.errors.Error"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.extractionError",
"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.errors.ExtractionError"}}}}},
"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.errors.ExtractionError"}}}}},
"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.errors.ExtractionError"}}}}}}},
"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.errors.ExtractionError"}}},
"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.errors.ExtractionError"}}}}}}},
"argument": {
"list": [
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "emptyList"}}}},
"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": {"variable": "hydra.core.errors.EmptyListError"}}},
"type": {"variable": "hydra.core.errors.ExtractionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.EmptyListError"},
"body": {"inject": {"typeName": "hydra.core.errors.ExtractionError", "field": {"name": "emptyList", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {"application": {"function": {"variable": "hydra.core.decode.errors.emptyListError"}, "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.errors.ExtractionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "multipleBindings"}}}},
"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": {"variable": "hydra.core.errors.MultipleBindingsError"}}},
"type": {"variable": "hydra.core.errors.ExtractionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.MultipleBindingsError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ExtractionError", "field": {"name": "multipleBindings", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.multipleBindingsError"}, "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.errors.ExtractionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "multipleFields"}}}},
"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": {"variable": "hydra.core.errors.MultipleFieldsError"}}},
"type": {"variable": "hydra.core.errors.ExtractionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.MultipleFieldsError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ExtractionError", "field": {"name": "multipleFields", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.multipleFieldsError"}, "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.errors.ExtractionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "noMatchingField"}}}},
"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": {"variable": "hydra.core.errors.NoMatchingFieldError"}}},
"type": {"variable": "hydra.core.errors.ExtractionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.NoMatchingFieldError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ExtractionError", "field": {"name": "noMatchingField", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.noMatchingFieldError"}, "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.errors.ExtractionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "noSuchBinding"}}}},
"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": {"variable": "hydra.core.errors.NoSuchBindingError"}}},
"type": {"variable": "hydra.core.errors.ExtractionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.NoSuchBindingError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ExtractionError", "field": {"name": "noSuchBinding", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.noSuchBindingError"}, "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.errors.ExtractionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "notEnoughCases"}}}},
"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": {"variable": "hydra.core.errors.NotEnoughCasesError"}}},
"type": {"variable": "hydra.core.errors.ExtractionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.NotEnoughCasesError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ExtractionError", "field": {"name": "notEnoughCases", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.notEnoughCasesError"}, "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.errors.ExtractionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "unexpectedShape"}}}},
"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": {"variable": "hydra.core.errors.UnexpectedShapeError"}}},
"type": {"variable": "hydra.core.errors.ExtractionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.UnexpectedShapeError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ExtractionError", "field": {"name": "unexpectedShape", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.unexpectedShapeError"}, "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.errors.ExtractionError"}}}}}}}]}}},
"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.errors.ExtractionError"}}}}}}},
"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.errors.ExtractionError"}}}}}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.errors.ExtractionError"}}}}},
"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.errors.ExtractionError"}}}}}}},
"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.errors.ExtractionError"}}}}},
"argument": {
"lambda": {
"parameter": "f",
"domain": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.errors.ExtractionError"}}}}},
"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.errors.ExtractionError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.inferenceError",
"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.errors.InferenceError"}}}}},
"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.errors.InferenceError"}}}}},
"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.errors.InferenceError"}}}}}}},
"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.errors.InferenceError"}}},
"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.errors.InferenceError"}}}}}}},
"argument": {
"list": [
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "checking"}}}},
"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": {"variable": "hydra.core.error.checking.CheckingError"}}},
"type": {"variable": "hydra.core.errors.InferenceError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.error.checking.CheckingError"},
"body": {"inject": {"typeName": "hydra.core.errors.InferenceError", "field": {"name": "checking", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.error.checking.checkingError"}, "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.errors.InferenceError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "other"}}}},
"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": {"variable": "hydra.core.errors.OtherInferenceError"}}},
"type": {"variable": "hydra.core.errors.InferenceError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.OtherInferenceError"},
"body": {"inject": {"typeName": "hydra.core.errors.InferenceError", "field": {"name": "other", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.otherInferenceError"}, "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.errors.InferenceError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "unification"}}}},
"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": {"variable": "hydra.core.errors.UnificationInferenceError"}}},
"type": {"variable": "hydra.core.errors.InferenceError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.UnificationInferenceError"},
"body": {
"inject": {"typeName": "hydra.core.errors.InferenceError", "field": {"name": "unification", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.unificationInferenceError"}, "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.errors.InferenceError"}}}}}}}]}}},
"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.errors.InferenceError"}}}}}}},
"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.errors.InferenceError"}}}}}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.errors.InferenceError"}}}}},
"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.errors.InferenceError"}}}}}}},
"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.errors.InferenceError"}}}}},
"argument": {
"lambda": {
"parameter": "f",
"domain": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.errors.InferenceError"}}}}},
"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.errors.InferenceError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.multipleBindingsError",
"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.errors.MultipleBindingsError"}}}}},
"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.errors.MultipleBindingsError"}}}}},
"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.errors.MultipleBindingsError"}}}}}}},
"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 a record of type hydra.core.errors.MultipleBindingsError"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.MultipleBindingsError"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {"variable": "hydra.core.errors.MultipleBindingsError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"argument": {"literal": {"string": "name"}}}},
"argument": {"variable": "hydra.core.decode.model.name"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_name",
"domain": {"variable": "hydra.core.model.Name"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.errors.MultipleBindingsError",
"fields": [{"name": "name", "term": {"variable": "field_name"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.MultipleBindingsError"}}}}}}}}}}}}]}},
"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.errors.MultipleBindingsError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.multipleFieldsError",
"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.errors.MultipleFieldsError"}}}}},
"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.errors.MultipleFieldsError"}}}}},
"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.errors.MultipleFieldsError"}}}}}}},
"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 a record of type hydra.core.errors.MultipleFieldsError"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.MultipleFieldsError"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {"variable": "hydra.core.errors.MultipleFieldsError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"argument": {"literal": {"string": "fieldName"}}}},
"argument": {"variable": "hydra.core.decode.model.name"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_fieldName",
"domain": {"variable": "hydra.core.model.Name"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.errors.MultipleFieldsError",
"fields": [{"name": "fieldName", "term": {"variable": "field_fieldName"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.MultipleFieldsError"}}}}}}}}}}}}]}},
"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.errors.MultipleFieldsError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.noMatchingFieldError",
"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.errors.NoMatchingFieldError"}}}}},
"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.errors.NoMatchingFieldError"}}}}},
"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.errors.NoMatchingFieldError"}}}}}}},
"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 a record of type hydra.core.errors.NoMatchingFieldError"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.NoMatchingFieldError"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {"variable": "hydra.core.errors.NoMatchingFieldError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"argument": {"literal": {"string": "fieldName"}}}},
"argument": {"variable": "hydra.core.decode.model.name"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_fieldName",
"domain": {"variable": "hydra.core.model.Name"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.errors.NoMatchingFieldError",
"fields": [{"name": "fieldName", "term": {"variable": "field_fieldName"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.NoMatchingFieldError"}}}}}}}}}}}}]}},
"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.errors.NoMatchingFieldError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.noSuchBindingError",
"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.errors.NoSuchBindingError"}}}}},
"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.errors.NoSuchBindingError"}}}}},
"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.errors.NoSuchBindingError"}}}}}}},
"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 a record of type hydra.core.errors.NoSuchBindingError"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.NoSuchBindingError"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {"variable": "hydra.core.errors.NoSuchBindingError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"argument": {"literal": {"string": "name"}}}},
"argument": {"variable": "hydra.core.decode.model.name"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_name",
"domain": {"variable": "hydra.core.model.Name"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {"typeName": "hydra.core.errors.NoSuchBindingError", "fields": [{"name": "name", "term": {"variable": "field_name"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.NoSuchBindingError"}}}}}}}}}}}}]}},
"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.errors.NoSuchBindingError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.noSuchPrimitiveError",
"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.errors.NoSuchPrimitiveError"}}}}},
"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.errors.NoSuchPrimitiveError"}}}}},
"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.errors.NoSuchPrimitiveError"}}}}}}},
"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 a record of type hydra.core.errors.NoSuchPrimitiveError"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.NoSuchPrimitiveError"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"type": {"variable": "hydra.core.errors.NoSuchPrimitiveError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.model.Name"}}},
"argument": {"literal": {"string": "name"}}}},
"argument": {"variable": "hydra.core.decode.model.name"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_name",
"domain": {"variable": "hydra.core.model.Name"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {"typeName": "hydra.core.errors.NoSuchPrimitiveError", "fields": [{"name": "name", "term": {"variable": "field_name"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.NoSuchPrimitiveError"}}}}}}}}}}}}]}},
"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.errors.NoSuchPrimitiveError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.notEnoughCasesError",
"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": "unit"}}}},
"body": {
"annotated": {
"body": {
"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"}}}}}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "Decoder for hydra.core.errors.NotEnoughCasesError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.otherError",
"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.errors.OtherError"}}}}},
"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.errors.OtherError"}}}}},
"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.errors.OtherError"}}}}}}},
"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 wrapped type"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.OtherError"}}},
"cases": [
{
"name": "wrap",
"handler": {
"lambda": {
"parameter": "wrappedTerm",
"domain": {"variable": "hydra.core.model.WrappedTerm"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"literal": "string"}}},
"type": {"variable": "hydra.core.errors.OtherError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "b",
"domain": {"literal": "string"},
"body": {"wrap": {"typeName": "hydra.core.errors.OtherError", "body": {"variable": "b"}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"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": {"literal": "string"}}}}},
"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": {"literal": "string"}}}}}}},
"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 literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.WrappedTerm", "fieldName": "body"}},
"argument": {"variable": "wrappedTerm"}}}}}}}}}}]}},
"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.errors.OtherError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.otherInferenceError",
"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.errors.OtherInferenceError"}}}}},
"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.errors.OtherInferenceError"}}}}},
"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.errors.OtherInferenceError"}}}}}}},
"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 a record of type hydra.core.errors.OtherInferenceError"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.OtherInferenceError"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.paths.SubtermPath"}}},
"type": {"variable": "hydra.core.errors.OtherInferenceError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.paths.SubtermPath"}}},
"argument": {"literal": {"string": "path"}}}},
"argument": {"variable": "hydra.core.decode.paths.subtermPath"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_path",
"domain": {"variable": "hydra.core.paths.SubtermPath"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"type": {"variable": "hydra.core.errors.OtherInferenceError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"literal": "string"}}},
"argument": {"literal": {"string": "message"}}}},
"argument": {
"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": {"literal": "string"}}}}},
"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": {"literal": "string"}}}}}}},
"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 literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_message",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.errors.OtherInferenceError",
"fields": [{"name": "path", "term": {"variable": "field_path"}}, {"name": "message", "term": {"variable": "field_message"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.OtherInferenceError"}}}}}}}}}}}}}}}}]}},
"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.errors.OtherInferenceError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.otherResolutionError",
"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.errors.OtherResolutionError"}}}}},
"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.errors.OtherResolutionError"}}}}},
"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.errors.OtherResolutionError"}}}}}}},
"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 wrapped type"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.OtherResolutionError"}}},
"cases": [
{
"name": "wrap",
"handler": {
"lambda": {
"parameter": "wrappedTerm",
"domain": {"variable": "hydra.core.model.WrappedTerm"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.map"}, "type": {"literal": "string"}}},
"type": {"variable": "hydra.core.errors.OtherResolutionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "b",
"domain": {"literal": "string"},
"body": {"wrap": {"typeName": "hydra.core.errors.OtherResolutionError", "body": {"variable": "b"}}}}}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"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": {"literal": "string"}}}}},
"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": {"literal": "string"}}}}}}},
"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 literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}},
"argument": {"variable": "cx"}}},
"argument": {
"application": {
"function": {"project": {"typeName": "hydra.core.model.WrappedTerm", "fieldName": "body"}},
"argument": {"variable": "wrappedTerm"}}}}}}}}}}]}},
"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.errors.OtherResolutionError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.resolutionError",
"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.errors.ResolutionError"}}}}},
"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.errors.ResolutionError"}}}}},
"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.errors.ResolutionError"}}}}}}},
"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.errors.ResolutionError"}}},
"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.errors.ResolutionError"}}}}}}},
"argument": {
"list": [
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "noSuchBinding"}}}},
"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": {"variable": "hydra.core.errors.NoSuchBindingError"}}},
"type": {"variable": "hydra.core.errors.ResolutionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.NoSuchBindingError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ResolutionError", "field": {"name": "noSuchBinding", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.noSuchBindingError"}, "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.errors.ResolutionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "noSuchPrimitive"}}}},
"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": {"variable": "hydra.core.errors.NoSuchPrimitiveError"}}},
"type": {"variable": "hydra.core.errors.ResolutionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.NoSuchPrimitiveError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ResolutionError", "field": {"name": "noSuchPrimitive", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.noSuchPrimitiveError"}, "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.errors.ResolutionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "noMatchingField"}}}},
"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": {"variable": "hydra.core.errors.NoMatchingFieldError"}}},
"type": {"variable": "hydra.core.errors.ResolutionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.NoMatchingFieldError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ResolutionError", "field": {"name": "noMatchingField", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.noMatchingFieldError"}, "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.errors.ResolutionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "other"}}}},
"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": {"variable": "hydra.core.errors.OtherResolutionError"}}},
"type": {"variable": "hydra.core.errors.ResolutionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.OtherResolutionError"},
"body": {"inject": {"typeName": "hydra.core.errors.ResolutionError", "field": {"name": "other", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.otherResolutionError"}, "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.errors.ResolutionError"}}}}}}},
{
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"pair": {
"first": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "unexpectedShape"}}}},
"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": {"variable": "hydra.core.errors.UnexpectedShapeError"}}},
"type": {"variable": "hydra.core.errors.ResolutionError"}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"argument": {
"lambda": {
"parameter": "t",
"domain": {"variable": "hydra.core.errors.UnexpectedShapeError"},
"body": {
"inject": {"typeName": "hydra.core.errors.ResolutionError", "field": {"name": "unexpectedShape", "term": {"variable": "t"}}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.decode.errors.unexpectedShapeError"}, "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.errors.ResolutionError"}}}}}}}]}}},
"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.errors.ResolutionError"}}}}}}},
"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.errors.ResolutionError"}}}}}}},
"type": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.errors.ResolutionError"}}}}},
"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.errors.ResolutionError"}}}}}}},
"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.errors.ResolutionError"}}}}},
"argument": {
"lambda": {
"parameter": "f",
"domain": {
"function": {
"domain": {"variable": "hydra.core.model.Term"},
"codomain": {
"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "hydra.core.errors.ResolutionError"}}}}},
"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.errors.ResolutionError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.unexpectedShapeError",
"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.errors.UnexpectedShapeError"}}}}},
"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.errors.UnexpectedShapeError"}}}}},
"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.errors.UnexpectedShapeError"}}}}}}},
"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 a record of type hydra.core.errors.UnexpectedShapeError"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.UnexpectedShapeError"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"type": {"variable": "hydra.core.errors.UnexpectedShapeError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"literal": "string"}}},
"argument": {"literal": {"string": "expected"}}}},
"argument": {
"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": {"literal": "string"}}}}},
"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": {"literal": "string"}}}}}}},
"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 literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_expected",
"domain": {"literal": "string"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"type": {"variable": "hydra.core.errors.UnexpectedShapeError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"literal": "string"}}},
"argument": {"literal": {"string": "actual"}}}},
"argument": {
"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": {"literal": "string"}}}}},
"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": {"literal": "string"}}}}}}},
"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 literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_actual",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.errors.UnexpectedShapeError",
"fields": [{"name": "expected", "term": {"variable": "field_expected"}}, {"name": "actual", "term": {"variable": "field_actual"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.UnexpectedShapeError"}}}}}}}}}}}}}}}}]}},
"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.errors.UnexpectedShapeError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.unificationError",
"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.errors.UnificationError"}}}}},
"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.errors.UnificationError"}}}}},
"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.errors.UnificationError"}}}}}}},
"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 a record of type hydra.core.errors.UnificationError"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.UnificationError"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Type"}}},
"type": {"variable": "hydra.core.errors.UnificationError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.model.Type"}}},
"argument": {"literal": {"string": "leftType"}}}},
"argument": {"variable": "hydra.core.decode.model.type"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_leftType",
"domain": {"variable": "hydra.core.model.Type"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.model.Type"}}},
"type": {"variable": "hydra.core.errors.UnificationError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.model.Type"}}},
"argument": {"literal": {"string": "rightType"}}}},
"argument": {"variable": "hydra.core.decode.model.type"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_rightType",
"domain": {"variable": "hydra.core.model.Type"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"type": {"variable": "hydra.core.errors.UnificationError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"literal": "string"}}},
"argument": {"literal": {"string": "message"}}}},
"argument": {
"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": {"literal": "string"}}}}},
"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": {"literal": "string"}}}}}}},
"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 literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "literal",
"handler": {
"lambda": {
"parameter": "v",
"domain": {"variable": "hydra.core.model.Literal"},
"body": {
"application": {
"function": {
"cases": {
"typeName": "hydra.core.model.Literal",
"default": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected string literal"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}},
"cases": [
{
"name": "string",
"handler": {
"lambda": {
"parameter": "s",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"either": {"right": {"variable": "s"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"literal": "string"}}}}}}]}},
"argument": {"variable": "v"}}}}}}]}},
"argument": {"variable": "stripped"}}}}}}},
"argument": {
"application": {
"function": {
"application": {"function": {"variable": "hydra.core.extract.model.stripWithDecodingError"}, "argument": {"variable": "cx"}}},
"argument": {"variable": "raw"}}}}}}}}}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_message",
"domain": {"literal": "string"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.errors.UnificationError",
"fields": [
{"name": "leftType", "term": {"variable": "field_leftType"}},
{"name": "rightType", "term": {"variable": "field_rightType"}},
{"name": "message", "term": {"variable": "field_message"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.UnificationError"}}}}}}}}}}}}}}}}}}}}]}},
"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.errors.UnificationError"}}}]}}}}},
{
"term": {
"name": "hydra.core.decode.errors.unificationInferenceError",
"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.errors.UnificationInferenceError"}}}}},
"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.errors.UnificationInferenceError"}}}}},
"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.errors.UnificationInferenceError"}}}}}}},
"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 a record of type hydra.core.errors.UnificationInferenceError"}}}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.UnificationInferenceError"}}},
"cases": [
{
"name": "record",
"handler": {
"lambda": {
"parameter": "record",
"domain": {"variable": "hydra.core.model.Record"},
"body": {
"let": {
"bindings": [
{
"name": "fieldMap",
"term": {"application": {"function": {"variable": "hydra.core.extract.model.toFieldMap"}, "argument": {"variable": "record"}}},
"typeScheme": {
"variables": [],
"body": {"map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.Term"}}},
"constraints": []}}],
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.paths.SubtermPath"}}},
"type": {"variable": "hydra.core.errors.UnificationInferenceError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.paths.SubtermPath"}}},
"argument": {"literal": {"string": "path"}}}},
"argument": {"variable": "hydra.core.decode.paths.subtermPath"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_path",
"domain": {"variable": "hydra.core.paths.SubtermPath"},
"body": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.UnificationError"}}},
"type": {"variable": "hydra.core.errors.UnificationInferenceError"}}},
"argument": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"application": {
"function": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"typeApplication": {"body": {"variable": "hydra.core.extract.model.requireField"}, "type": {"variable": "hydra.core.graph.Graph"}}},
"type": {"variable": "hydra.core.model.Term"}}},
"type": {"variable": "hydra.core.errors.UnificationError"}}},
"argument": {"literal": {"string": "cause"}}}},
"argument": {"variable": "hydra.core.decode.errors.unificationError"}}},
"argument": {"variable": "fieldMap"}}},
"argument": {"variable": "cx"}}}}},
"argument": {
"lambda": {
"parameter": "field_cause",
"domain": {"variable": "hydra.core.errors.UnificationError"},
"body": {
"typeApplication": {
"body": {
"typeApplication": {
"body": {
"either": {
"right": {
"record": {
"typeName": "hydra.core.errors.UnificationInferenceError",
"fields": [{"name": "path", "term": {"variable": "field_path"}}, {"name": "cause", "term": {"variable": "field_cause"}}]}}}},
"type": {"variable": "hydra.core.errors.DecodingError"}}},
"type": {"variable": "hydra.core.errors.UnificationInferenceError"}}}}}}}}}}}}}}}}]}},
"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.errors.UnificationInferenceError"}}}]}}}}}]}