packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/decode/validation.json

{
  "name": "hydra.core.decode.validation",
  "metadata": {"description": "Term decoders for hydra.core.validation", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [
    {"module": "hydra.core.extract.model"},
    {"module": "hydra.core.lexical"},
    {"module": "hydra.core.rewriting"},
    {"module": "hydra.core.validation"},
    {"module": "hydra.core.util"},
    {"module": "hydra.core.decode.model"}],
  "definitions": [
    {
      "term": {
        "name": "hydra.core.decode.validation.validationProfile",
        "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.validation.ValidationProfile"}}}}},
        "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.validation.ValidationProfile"}}}}},
                                "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.validation.ValidationProfile"}}}}}}},
                            "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.validation.ValidationProfile"}}}}}},
                                                "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                            "type": {"variable": "hydra.core.validation.ValidationProfile"}}},
                                        "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": {"set": {"variable": "hydra.core.model.Name"}}}},
                                                                "type": {"variable": "hydra.core.validation.ValidationProfile"}}},
                                                            "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": {"set": {"variable": "hydra.core.model.Name"}}}},
                                                                            "argument": {"literal": {"string": "errorRules"}}}},
                                                                        "argument": {
                                                                          "application": {
                                                                            "function": {
                                                                              "typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeSet"}, "type": {"variable": "hydra.core.model.Name"}}},
                                                                            "argument": {"variable": "hydra.core.decode.model.name"}}}}},
                                                                    "argument": {"variable": "fieldMap"}}},
                                                                "argument": {"variable": "cx"}}}}},
                                                        "argument": {
                                                          "lambda": {
                                                            "parameter": "field_errorRules",
                                                            "domain": {"set": {"variable": "hydra.core.model.Name"}},
                                                            "body": {
                                                              "application": {
                                                                "function": {
                                                                  "application": {
                                                                    "function": {
                                                                      "typeApplication": {
                                                                        "body": {
                                                                          "typeApplication": {
                                                                            "body": {
                                                                              "typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                            "type": {"set": {"variable": "hydra.core.model.Name"}}}},
                                                                        "type": {"variable": "hydra.core.validation.ValidationProfile"}}},
                                                                    "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": {"set": {"variable": "hydra.core.model.Name"}}}},
                                                                                    "argument": {"literal": {"string": "warningRules"}}}},
                                                                                "argument": {
                                                                                  "application": {
                                                                                    "function": {
                                                                                      "typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeSet"}, "type": {"variable": "hydra.core.model.Name"}}},
                                                                                    "argument": {"variable": "hydra.core.decode.model.name"}}}}},
                                                                            "argument": {"variable": "fieldMap"}}},
                                                                        "argument": {"variable": "cx"}}}}},
                                                                "argument": {
                                                                  "lambda": {
                                                                    "parameter": "field_warningRules",
                                                                    "domain": {"set": {"variable": "hydra.core.model.Name"}},
                                                                    "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": {"integer": "int32"}}}},
                                                                                "type": {"variable": "hydra.core.validation.ValidationProfile"}}},
                                                                            "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": {"integer": "int32"}}}},
                                                                                            "argument": {"literal": {"string": "maxErrors"}}}},
                                                                                        "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": {"integer": "int32"}}}}}},
                                                                                                            "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": {"integer": "int32"}}}}}}}},
                                                                                                        "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": {"integer": "int32"}}}},
                                                                                                                    "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 int32 literal"}}}}}},
                                                                                                                                            "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                                                                                        "type": {"literal": {"integer": "int32"}}}},
                                                                                                                                    "cases": [
                                                                                                                                      {
                                                                                                                                        "name": "integer",
                                                                                                                                        "handler": {
                                                                                                                                          "cases": {
                                                                                                                                            "typeName": "hydra.core.model.IntegerValue",
                                                                                                                                            "default": {
                                                                                                                                              "typeApplication": {
                                                                                                                                                "body": {
                                                                                                                                                  "typeApplication": {
                                                                                                                                                    "body": {
                                                                                                                                                      "either": {
                                                                                                                                                        "left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected int32 value"}}}}}},
                                                                                                                                                    "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                                                                                                "type": {"literal": {"integer": "int32"}}}},
                                                                                                                                            "cases": [
                                                                                                                                              {
                                                                                                                                                "name": "int32",
                                                                                                                                                "handler": {
                                                                                                                                                  "lambda": {
                                                                                                                                                    "parameter": "i",
                                                                                                                                                    "domain": {"literal": {"integer": "int32"}},
                                                                                                                                                    "body": {
                                                                                                                                                      "typeApplication": {
                                                                                                                                                        "body": {
                                                                                                                                                          "typeApplication": {"body": {"either": {"right": {"variable": "i"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                                                                                                        "type": {"literal": {"integer": "int32"}}}}}}}]}}}]}},
                                                                                                                                "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_maxErrors",
                                                                            "domain": {"literal": {"integer": "int32"}},
                                                                            "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": {"integer": "int32"}}}},
                                                                                        "type": {"variable": "hydra.core.validation.ValidationProfile"}}},
                                                                                    "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": {"integer": "int32"}}}},
                                                                                                    "argument": {"literal": {"string": "maxWarnings"}}}},
                                                                                                "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": {"integer": "int32"}}}}}},
                                                                                                                    "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": {"integer": "int32"}}}}}}}},
                                                                                                                "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": {"integer": "int32"}}}},
                                                                                                                            "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 int32 literal"}}}}}},
                                                                                                                                                    "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                                                                                                "type": {"literal": {"integer": "int32"}}}},
                                                                                                                                            "cases": [
                                                                                                                                              {
                                                                                                                                                "name": "integer",
                                                                                                                                                "handler": {
                                                                                                                                                  "cases": {
                                                                                                                                                    "typeName": "hydra.core.model.IntegerValue",
                                                                                                                                                    "default": {
                                                                                                                                                      "typeApplication": {
                                                                                                                                                        "body": {
                                                                                                                                                          "typeApplication": {
                                                                                                                                                            "body": {
                                                                                                                                                              "either": {
                                                                                                                                                                "left": {"wrap": {"typeName": "hydra.core.errors.DecodingError", "body": {"literal": {"string": "expected int32 value"}}}}}},
                                                                                                                                                            "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                                                                                                        "type": {"literal": {"integer": "int32"}}}},
                                                                                                                                                    "cases": [
                                                                                                                                                      {
                                                                                                                                                        "name": "int32",
                                                                                                                                                        "handler": {
                                                                                                                                                          "lambda": {
                                                                                                                                                            "parameter": "i",
                                                                                                                                                            "domain": {"literal": {"integer": "int32"}},
                                                                                                                                                            "body": {
                                                                                                                                                              "typeApplication": {
                                                                                                                                                                "body": {
                                                                                                                                                                  "typeApplication": {"body": {"either": {"right": {"variable": "i"}}}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                                                                                                                "type": {"literal": {"integer": "int32"}}}}}}}]}}}]}},
                                                                                                                                        "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_maxWarnings",
                                                                                    "domain": {"literal": {"integer": "int32"}},
                                                                                    "body": {
                                                                                      "typeApplication": {
                                                                                        "body": {
                                                                                          "typeApplication": {
                                                                                            "body": {
                                                                                              "either": {
                                                                                                "right": {
                                                                                                  "record": {
                                                                                                    "typeName": "hydra.core.validation.ValidationProfile",
                                                                                                    "fields": [
                                                                                                      {"name": "errorRules", "term": {"variable": "field_errorRules"}},
                                                                                                      {"name": "warningRules", "term": {"variable": "field_warningRules"}},
                                                                                                      {"name": "maxErrors", "term": {"variable": "field_maxErrors"}},
                                                                                                      {"name": "maxWarnings", "term": {"variable": "field_maxWarnings"}}]}}}},
                                                                                            "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                                        "type": {"variable": "hydra.core.validation.ValidationProfile"}}}}}}}}}}}}}}}}}}}}}}}}]}},
                                    "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.validation.ValidationProfile"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.decode.validation.validationResult",
        "signature": {
          "typeParameters": [{"name": "e", "constraints": []}],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "function": {
                  "domain": {"variable": "hydra.core.graph.Graph"},
                  "codomain": {
                    "function": {
                      "domain": {"variable": "hydra.core.model.Term"},
                      "codomain": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "e"}}}}}}},
              "isLazy": false},
            {"name": "arg1", "type": {"variable": "hydra.core.graph.Graph"}, "isLazy": false},
            {"name": "arg2", "type": {"variable": "hydra.core.model.Term"}, "isLazy": false}],
          "result": {
            "type": {
              "either": {
                "left": {"variable": "hydra.core.errors.DecodingError"},
                "right": {"application": {"function": {"variable": "hydra.core.validation.ValidationResult"}, "argument": {"variable": "e"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "e",
                "domain": {
                  "function": {
                    "domain": {"variable": "hydra.core.graph.Graph"},
                    "codomain": {
                      "function": {
                        "domain": {"variable": "hydra.core.model.Term"},
                        "codomain": {"either": {"left": {"variable": "hydra.core.errors.DecodingError"}, "right": {"variable": "e"}}}}}}},
                "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": {"application": {"function": {"variable": "hydra.core.validation.ValidationResult"}, "argument": {"variable": "e"}}}}}}},
                                    "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": {"application": {"function": {"variable": "hydra.core.validation.ValidationResult"}, "argument": {"variable": "e"}}}}}}}}},
                                "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.validation.ValidationResult"}}}}}},
                                                    "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                "type": {"application": {"function": {"variable": "hydra.core.validation.ValidationResult"}, "argument": {"variable": "e"}}}}},
                                            "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": {"list": {"variable": "e"}}}},
                                                                    "type": {"application": {"function": {"variable": "hydra.core.validation.ValidationResult"}, "argument": {"variable": "e"}}}}},
                                                                "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": {"list": {"variable": "e"}}}},
                                                                                "argument": {"literal": {"string": "errors"}}}},
                                                                            "argument": {
                                                                              "application": {
                                                                                "function": {"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "e"}}},
                                                                                "argument": {"variable": "e"}}}}},
                                                                        "argument": {"variable": "fieldMap"}}},
                                                                    "argument": {"variable": "cx"}}}}},
                                                            "argument": {
                                                              "lambda": {
                                                                "parameter": "field_errors",
                                                                "domain": {"list": {"variable": "e"}},
                                                                "body": {
                                                                  "application": {
                                                                    "function": {
                                                                      "application": {
                                                                        "function": {
                                                                          "typeApplication": {
                                                                            "body": {
                                                                              "typeApplication": {
                                                                                "body": {
                                                                                  "typeApplication": {"body": {"variable": "hydra.core.lib.eithers.bind"}, "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                                "type": {"list": {"variable": "e"}}}},
                                                                            "type": {"application": {"function": {"variable": "hydra.core.validation.ValidationResult"}, "argument": {"variable": "e"}}}}},
                                                                        "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": {"list": {"variable": "e"}}}},
                                                                                        "argument": {"literal": {"string": "warnings"}}}},
                                                                                    "argument": {
                                                                                      "application": {
                                                                                        "function": {"typeApplication": {"body": {"variable": "hydra.core.extract.model.decodeList"}, "type": {"variable": "e"}}},
                                                                                        "argument": {"variable": "e"}}}}},
                                                                                "argument": {"variable": "fieldMap"}}},
                                                                            "argument": {"variable": "cx"}}}}},
                                                                    "argument": {
                                                                      "lambda": {
                                                                        "parameter": "field_warnings",
                                                                        "domain": {"list": {"variable": "e"}},
                                                                        "body": {
                                                                          "typeApplication": {
                                                                            "body": {
                                                                              "typeApplication": {
                                                                                "body": {
                                                                                  "either": {
                                                                                    "right": {
                                                                                      "record": {
                                                                                        "typeName": "hydra.core.validation.ValidationResult",
                                                                                        "fields": [{"name": "errors", "term": {"variable": "field_errors"}}, {"name": "warnings", "term": {"variable": "field_warnings"}}]}}}},
                                                                                "type": {"variable": "hydra.core.errors.DecodingError"}}},
                                                                            "type": {"application": {"function": {"variable": "hydra.core.validation.ValidationResult"}, "argument": {"variable": "e"}}}}}}}}}}}}}}}}}}]}},
                                        "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.validation.ValidationResult"}}}]}}}}}]}