packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/model.json

{
  "name": "hydra.core.model",
  "metadata": {
    "description": "Hydra's core data model, consisting of the fundamental hydra.core.model.Term type and all of its dependencies.",
    "comments": [],
    "seeAlso": [],
    "provisions": []},
  "dependencies": [],
  "definitions": [
    {
      "type": {
        "name": "hydra.core.model.AnnotatedTerm",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "body",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The term being annotated"}}}]}}}},
                  {
                    "name": "annotation",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "The annotation as a single term. By convention this is a map term (Name -> Term) so that multiple independent annotations can coexist, but applications are free to use any term shape."}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A term together with an annotation"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.AnnotatedType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "body",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type being annotated"}}}]}}}},
                  {
                    "name": "annotation",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "The annotation as a single term. By convention this is a map term (Name -> Term) so that multiple independent annotations can coexist, but applications are free to use any term shape."}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A type together with an annotation"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Application",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "function",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The left-hand side of the application"}}}]}}}},
                  {
                    "name": "argument",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The right-hand side of the application"}}}]}}}}]},
              "annotation": {
                "map": [
                  {"key": {"variable": "description"}, "value": {"literal": {"string": "A term which applies a function to an argument"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.ApplicationType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "function",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The left-hand side of the application"}}}]}}}},
                  {
                    "name": "argument",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The right-hand side of the application"}}}]}}}}]},
              "annotation": {
                "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type-level analog of an application term"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Binding",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "name",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the bound variable"}}}]}}}},
                  {
                    "name": "term",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The term to which the variable is bound"}}}]}}}},
                  {
                    "name": "typeScheme",
                    "type": {
                      "annotated": {
                        "body": {"optional": {"variable": "hydra.core.model.TypeScheme"}},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The optional type scheme of the bound term"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "A field with an optional type scheme, used to bind variables to terms in a 'let' expression"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.CaseAlternative",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "name",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the union variant matched by this alternative"}}}]}}}},
                  {
                    "name": "handler",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The handler applied to the matched variant's payload"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A single alternative of a case statement (union elimination): the variant being matched, together with the term that handles it."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.CaseStatement",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "typeName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the union type"}}}]}}}},
                  {
                    "name": "default",
                    "type": {
                      "annotated": {
                        "body": {"optional": {"variable": "hydra.core.model.Term"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "An optional default case, used if none of the explicit cases match"}}}]}}}},
                  {
                    "name": "cases",
                    "type": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.model.CaseAlternative"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A list of case alternatives, one per union variant being handled"}}}]}}}}]},
              "annotation": {
                "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A union elimination; a case statement"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.EitherType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "left",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The 'left' alternative"}}}]}}}},
                  {
                    "name": "right",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The 'right' alternative"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "A type which provides a choice between a 'left' type and a 'right' type"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Field",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "name",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the field"}}}]}}}},
                  {
                    "name": "term",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The value of the field"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A name/term pair"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.FieldType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "name",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the field"}}}]}}}},
                  {
                    "name": "type",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of the field"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A name/type pair"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.FloatType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "float32",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 32-bit floating-point type"}}}]}}}},
                  {
                    "name": "float64",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 64-bit floating-point type"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A floating-point type"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.FloatValue",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "float32",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"float": "float32"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 32-bit floating-point value"}}}]}}}},
                  {
                    "name": "float64",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"float": "float64"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 64-bit floating-point value"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A floating-point literal value"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.ForallType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "parameter",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The variable which is bound by the lambda"}}}]}}}},
                  {
                    "name": "body",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The body of the lambda"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A universally quantified type; the System F equivalent of a type scheme, and the type-level equivalent of a lambda term."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.FunctionType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "domain",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The domain (input) type of the function"}}}]}}}},
                  {
                    "name": "codomain",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The codomain (output) type of the function"}}}]}}}}]},
              "annotation": {
                "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A function type, also known as an arrow type"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Injection",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "typeName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the union type"}}}]}}}},
                  {
                    "name": "field",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Field"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The field being injected, including its name and value"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "An instance of a union type; i.e. a string-indexed generalization of inl() or inr()"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.IntegerType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "bigint",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An arbitrary-precision integer type"}}}]}}}},
                  {
                    "name": "int8",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An 8-bit signed integer type"}}}]}}}},
                  {
                    "name": "int16",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 16-bit signed integer type"}}}]}}}},
                  {
                    "name": "int32",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 32-bit signed integer type"}}}]}}}},
                  {
                    "name": "int64",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 64-bit signed integer type"}}}]}}}},
                  {
                    "name": "uint8",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An 8-bit unsigned integer type"}}}]}}}},
                  {
                    "name": "uint16",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 16-bit unsigned integer type"}}}]}}}},
                  {
                    "name": "uint32",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 32-bit unsigned integer type"}}}]}}}},
                  {
                    "name": "uint64",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 64-bit unsigned integer type"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An integer type"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.IntegerValue",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "bigint",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "bigint"}},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An arbitrary-precision integer value"}}}]}}}},
                  {
                    "name": "int8",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "int8"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An 8-bit signed integer value"}}}]}}}},
                  {
                    "name": "int16",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "int16"}},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 16-bit signed integer value (short value)"}}}]}}}},
                  {
                    "name": "int32",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "int32"}},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 32-bit signed integer value (int value)"}}}]}}}},
                  {
                    "name": "int64",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "int64"}},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 64-bit signed integer value (long value)"}}}]}}}},
                  {
                    "name": "uint8",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "uint8"}},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An 8-bit unsigned integer value (byte)"}}}]}}}},
                  {
                    "name": "uint16",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "uint16"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 16-bit unsigned integer value"}}}]}}}},
                  {
                    "name": "uint32",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "uint32"}},
                        "annotation": {
                          "map": [
                            {"key": {"variable": "description"}, "value": {"literal": {"string": "A 32-bit unsigned integer value (unsigned int)"}}}]}}}},
                  {
                    "name": "uint64",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "uint64"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A 64-bit unsigned integer value (unsigned long)"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An integer literal value"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Lambda",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "parameter",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The parameter of the lambda"}}}]}}}},
                  {
                    "name": "domain",
                    "type": {
                      "annotated": {
                        "body": {"optional": {"variable": "hydra.core.model.Type"}},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An optional domain type for the lambda"}}}]}}}},
                  {
                    "name": "body",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The body of the lambda"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A function abstraction (lambda)"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Let",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "bindings",
                    "type": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.model.Binding"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The list of variable bindings"}}}]}}}},
                  {
                    "name": "body",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {
                          "map": [
                            {"key": {"variable": "description"}, "value": {"literal": {"string": "The body term in which the variables are bound"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "A set of (possibly recursive) 'let' bindings together with a body in which they are bound"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Literal",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "binary",
                    "type": {
                      "annotated": {
                        "body": {"literal": "binary"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A binary literal"}}}]}}}},
                  {
                    "name": "boolean",
                    "type": {
                      "annotated": {
                        "body": {"literal": "boolean"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A boolean literal"}}}]}}}},
                  {
                    "name": "decimal",
                    "type": {
                      "annotated": {
                        "body": {"literal": "decimal"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An arbitrary-precision decimal literal"}}}]}}}},
                  {
                    "name": "float",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.FloatValue"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A floating-point literal"}}}]}}}},
                  {
                    "name": "integer",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.IntegerValue"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An integer literal"}}}]}}}},
                  {
                    "name": "string",
                    "type": {
                      "annotated": {
                        "body": {"literal": "string"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A string literal"}}}]}}}}]},
              "annotation": {
                "map": [
                  {"key": {"variable": "description"}, "value": {"literal": {"string": "A term constant; an instance of a literal type"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.LiteralType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "binary",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of a binary (byte string) value"}}}]}}}},
                  {
                    "name": "boolean",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of a boolean (true/false) value"}}}]}}}},
                  {
                    "name": "decimal",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The type of an arbitrary-precision decimal value"}}}]}}}},
                  {
                    "name": "float",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.FloatType"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of a floating-point value"}}}]}}}},
                  {
                    "name": "integer",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.IntegerType"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of an integer value"}}}]}}}},
                  {
                    "name": "string",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of a string value"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "Any of a fixed set of literal types, also called atomic types, base types, primitive types, or type constants"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.MapType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "keys",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of keys in the map"}}}]}}}},
                  {
                    "name": "values",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type of values in the map"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A map type"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Name",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {"wrap": {"literal": "string"}},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "A unique identifier in some context; a string-valued key"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.PairType",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "first",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The first component of the pair"}}}]}}}},
                  {
                    "name": "second",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The second component of the pair"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "A type which pairs a 'first' type and a 'second' type"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Projection",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "typeName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the record type"}}}]}}}},
                  {
                    "name": "fieldName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the projected field"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A record elimination; a projection"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Record",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "typeName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the record type"}}}]}}}},
                  {
                    "name": "fields",
                    "type": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.model.Field"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The fields of the record, as a list of name/term pairs"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "A record, or labeled tuple; a map of field names to terms"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Term",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "annotated",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.AnnotatedTerm"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A term annotated with metadata"}}}]}}}},
                  {
                    "name": "application",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Application"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A function application"}}}]}}}},
                  {
                    "name": "cases",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.CaseStatement"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A union elimination; a case statement"}}}]}}}},
                  {
                    "name": "either",
                    "type": {
                      "annotated": {
                        "body": {"either": {"left": {"variable": "hydra.core.model.Term"}, "right": {"variable": "hydra.core.model.Term"}}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An either value"}}}]}}}},
                  {
                    "name": "inject",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Injection"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An injection; an instance of a union type"}}}]}}}},
                  {
                    "name": "lambda",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Lambda"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A function abstraction (lambda)"}}}]}}}},
                  {
                    "name": "let",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Let"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A 'let' term, which binds variables to terms"}}}]}}}},
                  {
                    "name": "list",
                    "type": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.model.Term"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A list"}}}]}}}},
                  {
                    "name": "literal",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Literal"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A literal value"}}}]}}}},
                  {
                    "name": "map",
                    "type": {
                      "annotated": {
                        "body": {"map": {"keys": {"variable": "hydra.core.model.Term"}, "values": {"variable": "hydra.core.model.Term"}}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A map of keys to values"}}}]}}}},
                  {
                    "name": "optional",
                    "type": {
                      "annotated": {
                        "body": {"optional": {"variable": "hydra.core.model.Term"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An optional value"}}}]}}}},
                  {
                    "name": "pair",
                    "type": {
                      "annotated": {
                        "body": {"pair": {"first": {"variable": "hydra.core.model.Term"}, "second": {"variable": "hydra.core.model.Term"}}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A pair (2-tuple)"}}}]}}}},
                  {
                    "name": "project",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Projection"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A record elimination; a projection"}}}]}}}},
                  {
                    "name": "record",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Record"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A record term"}}}]}}}},
                  {
                    "name": "set",
                    "type": {
                      "annotated": {
                        "body": {"set": {"variable": "hydra.core.model.Term"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A set of values"}}}]}}}},
                  {
                    "name": "typeApplication",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.TypeApplicationTerm"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A System F type application term"}}}]}}}},
                  {
                    "name": "typeLambda",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.TypeLambda"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A System F type abstraction term"}}}]}}}},
                  {
                    "name": "unit",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A unit value; a term with no value"}}}]}}}},
                  {
                    "name": "unwrap",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "An unwrap elimination; the inverse of a wrap. Given the name of a wrapper type, unwraps an instance of that type to its underlying body value."}}}]}}}},
                  {
                    "name": "variable",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A variable reference"}}}]}}}},
                  {
                    "name": "wrap",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.WrappedTerm"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A wrapped term; an instance of a wrapper type (newtype)"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A data term"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.Type",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "annotated",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.AnnotatedType"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An annotated type"}}}]}}}},
                  {
                    "name": "application",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.ApplicationType"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A type application"}}}]}}}},
                  {
                    "name": "effect",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "An effectful computation which, when interpreted by a host application, may perform host interactions and produce a value of the given type"}}}]}}}},
                  {
                    "name": "either",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.EitherType"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An either (sum) type"}}}]}}}},
                  {
                    "name": "forall",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.ForallType"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A universally quantified (polymorphic) type"}}}]}}}},
                  {
                    "name": "function",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.FunctionType"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A function type"}}}]}}}},
                  {
                    "name": "list",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A list type"}}}]}}}},
                  {
                    "name": "literal",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.LiteralType"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A literal type"}}}]}}}},
                  {
                    "name": "map",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.MapType"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A map type"}}}]}}}},
                  {
                    "name": "optional",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An optional type"}}}]}}}},
                  {
                    "name": "pair",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.PairType"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A pair (2-tuple) type"}}}]}}}},
                  {
                    "name": "record",
                    "type": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.model.FieldType"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A record type"}}}]}}}},
                  {
                    "name": "set",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A set type"}}}]}}}},
                  {
                    "name": "union",
                    "type": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.model.FieldType"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A union type with field names"}}}]}}}},
                  {
                    "name": "unit",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The unit type — the nullary conjunction; one inhabitant. Dual to `void`."}}}]}}}},
                  {
                    "name": "variable",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A type variable"}}}]}}}},
                  {
                    "name": "void",
                    "type": {
                      "annotated": {
                        "body": "unit",
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {"string": "The void (uninhabited, or bottom) type — the nullary disjunction; zero inhabitants. Dual to `unit`."}}}]}}}},
                  {
                    "name": "wrap",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "A wrapped type (newtype). There is no corresponding `unwrap` variant at the type level: wrap is the introduction form, and a wrapper type's underlying body type is given by the `wrap` variant's argument."}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A data type"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.TypeApplicationTerm",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "body",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The term being applied to a type"}}}]}}}},
                  {
                    "name": "type",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type argument"}}}]}}}}]},
              "annotation": {
                "map": [
                  {"key": {"variable": "description"}, "value": {"literal": {"string": "A term applied to a type; a type application."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.TypeClassConstraint",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "simple",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A simple type class constraint, naming a single type class"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A type class constraint on a type variable. Currently has only one variant, but designed to be forward-compatible with multi-parameter type classes and constraints on type expressions."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.TypeLambda",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "parameter",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The type variable introduced by the abstraction"}}}]}}}},
                  {
                    "name": "body",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The body of the abstraction"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A System F type abstraction term"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.TypeScheme",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "variables",
                    "type": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.model.Name"}},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The free type variables"}}}]}}}},
                  {
                    "name": "body",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Type"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The type expression"}}}]}}}},
                  {
                    "name": "constraints",
                    "type": {
                      "annotated": {
                        "body": {
                          "map": {"keys": {"variable": "hydra.core.model.Name"}, "values": {"variable": "hydra.core.model.TypeVariableConstraints"}}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "Constraints on type variables, including typeclass constraints. The map keys are type variable names; an empty map means no constraints."}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "A type expression together with free type variables occurring in the expression"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.TypeVariableConstraints",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "classes",
                    "type": {
                      "annotated": {
                        "body": {"set": {"variable": "hydra.core.model.TypeClassConstraint"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The typeclass constraints on this type variable"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "Constraints associated with a type variable, including typeclass constraints"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.model.WrappedTerm",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "typeName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the wrapper type"}}}]}}}},
                  {
                    "name": "body",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Term"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The wrapped term"}}}]}}}}]},
              "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A term wrapped in a type name"}}}]}}},
          "constraints": []}}}]}