packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/dsl/arity.json

{
  "name": "hydra.core.dsl.arity",
  "metadata": {"description": "DSL functions for hydra.core.arity", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [
    {"module": "hydra.core.arity"},
    {"module": "hydra.core.typed"},
    {"module": "hydra.core.encode.arity"},
    {"module": "hydra.core.decode.arity"},
    {"module": "hydra.core.graph"},
    {"module": "hydra.core.lib.lists"},
    {"module": "hydra.core.lib.math"},
    {"module": "hydra.core.model"},
    {"module": "hydra.core.packaging"},
    {"module": "hydra.core.typing"},
    {"module": "hydra.core.dsl.graph"},
    {"module": "hydra.core.dsl.lib.lists"},
    {"module": "hydra.core.dsl.lib.math"},
    {"module": "hydra.core.dsl.model"},
    {"module": "hydra.core.dsl.packaging"},
    {"module": "hydra.core.dsl.typing"}],
  "definitions": [
    {
      "term": {
        "name": "hydra.core.dsl.arity.primitiveArity",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Primitive"}}},
              "isLazy": false}],
          "result": {
            "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": {"integer": "int32"}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.graph.Primitive"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.arity.primitiveArity"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.arity.primitiveArity"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.arity.termArity",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Term"}}},
              "isLazy": false}],
          "result": {
            "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": {"integer": "int32"}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Term"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.arity.termArity"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.arity.termArity"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.arity.typeArity",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {
            "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": {"integer": "int32"}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.arity.typeArity"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.arity.typeArity"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.arity.typeSchemeArity",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.TypeScheme"}}},
              "isLazy": false}],
          "result": {
            "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": {"integer": "int32"}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.TypeScheme"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.arity.typeSchemeArity"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.arity.typeSchemeArity"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.arity.uncurryType",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"list": {"variable": "hydra.core.model.Type"}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "arg0",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.model.Type"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.arity.uncurryType"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "arg0"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.arity.uncurryType"}}}]}}}}}]}