packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/error/packaging.json

{
  "name": "hydra.core.error.packaging",
  "metadata": {"description": "Error types for module and package validation", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [{"module": "hydra.core.model"}, {"module": "hydra.core.packaging"}, {"module": "hydra.core.util"}],
  "definitions": [
    {
      "type": {
        "name": "hydra.core.error.packaging.ConflictingModuleNameError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "first",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The first module name"}}}]}}}},
                  {
                    "name": "second",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The second module name that conflicts with the first"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A module name which, when mapped to a target language's directory or package structure, conflicts with another module's mapped name. For example, hydra.foo.bar and hydra.fooBar might both map to the same directory in a case-insensitive filesystem."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.ConflictingVariantNameError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the module containing the conflict"}}}]}}}},
                  {
                    "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": "variantName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the variant field causing the conflict"}}}]}}}},
                  {
                    "name": "conflictingName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the other type definition that conflicts with the generated constructor name"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A union type variant name which, when capitalized and concatenated with its type name, conflicts with another type definition name. For example, a union type Foo with a variant bar produces FooBar, which conflicts with an existing type definition FooBar. This is currently a problem only for the Haskell target."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.DefinitionNotInModuleNameError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the module"}}}]}}}},
                  {
                    "name": "name",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The definition name that does not match the module name"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A definition whose name does not have the module's name as a prefix. If the module name is foo.bar, all definition names must have the form foo.bar.quux."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.DefinitionsOutOfOrderError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the module containing the misordered definitions"}}}]}}}},
                  {
                    "name": "precedingName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {"key": {"variable": "description"}, "value": {"literal": {"string": "The definition that appears first in the list"}}}]}}}},
                  {
                    "name": "followingName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The definition that appears next, but should sort earlier than precedingName"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "Two consecutive definitions in a module's definitions list that are not in alphabetical order by local name. Hydra requires definitions to appear in lexicographic ASCII order of their local names."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.DuplicateDefinitionNameError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the module containing the duplicates"}}}]}}}},
                  {
                    "name": "name",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The duplicated definition name"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "Two or more definitions in the same module share the same name"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.DuplicateModuleNameError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {"map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The duplicated module name"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "Two or more modules in the same package share the same name"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.InvalidDefinitionNameError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the module containing the definition"}}}]}}}},
                  {
                    "name": "name",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The definition name that violates the naming convention"}}}]}}}},
                  {
                    "name": "expectedConvention",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.util.CaseConvention"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {"string": "The case convention the name should have followed (camel for term-level, pascal for type-level)"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A definition whose local name does not match the expected naming convention. Term-level definitions must be camelCase; type-level definitions must be PascalCase."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.InvalidModuleError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "conflictingVariantName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.ConflictingVariantNameError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {"string": "A union variant name that conflicts with another type definition when mapped to a target language"}}}]}}}},
                  {
                    "name": "definitionNotInModuleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.DefinitionNotInModuleNameError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A definition whose name does not have the module's name as a prefix"}}}]}}}},
                  {
                    "name": "definitionsOutOfOrder",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.DefinitionsOutOfOrderError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Two consecutive definitions in the definitions list that are not in alphabetical order"}}}]}}}},
                  {
                    "name": "duplicateDefinitionName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.DuplicateDefinitionNameError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Two or more definitions in the same module share the same name"}}}]}}}},
                  {
                    "name": "invalidDefinitionName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.InvalidDefinitionNameError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A definition whose local name does not match the expected naming convention"}}}]}}}},
                  {
                    "name": "invalidModuleNameConvention",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.InvalidModuleNameConventionError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A module whose name does not match the module-name naming convention"}}}]}}}},
                  {
                    "name": "missingDocumentation",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.MissingDocumentationError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A top-level definition lacking a description annotation"}}}]}}}}]},
              "annotation": {
                "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "An error indicating that a module is invalid"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.InvalidModuleNameConventionError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The module name that violates the convention"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A module whose name does not match the dotted-lowercase naming convention. Module names must be dot-separated lowercase segments, each starting with a letter, e.g. hydra.core.model or hydra.core.lib.lists."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.InvalidPackageError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "union": [
                  {
                    "name": "conflictingModuleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.ConflictingModuleNameError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Two module names that conflict when mapped to a target language"}}}]}}}},
                  {
                    "name": "duplicateModuleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.DuplicateModuleNameError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Two or more modules in the same package share the same name"}}}]}}}},
                  {
                    "name": "invalidModule",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.InvalidModuleError"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "A module within the package is invalid"}}}]}}}},
                  {
                    "name": "invalidPackageName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.InvalidPackageNameError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A package whose name does not match the package-name naming convention"}}}]}}}},
                  {
                    "name": "moduleInMultiplePackages",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.ModuleInMultiplePackagesError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "A module namespace declared by more than one package"}}}]}}}},
                  {
                    "name": "nestedModuleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.NestedModuleNameError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {"string": "A module namespace that is a strict dotted-prefix of another module namespace in the same package"}}}]}}}},
                  {
                    "name": "undeclaredDependency",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.error.packaging.UndeclaredDependencyError"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {"string": "A module references a name owned by another module that is not among its declared dependencies"}}}]}}}}]},
              "annotation": {
                "map": [
                  {"key": {"variable": "description"}, "value": {"literal": {"string": "An error indicating that a package is invalid"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.InvalidPackageNameError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "packageName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.PackageName"},
                        "annotation": {
                          "map": [
                            {"key": {"variable": "description"}, "value": {"literal": {"string": "The package name that violates the convention"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A package whose name does not match the hyphen-separated lowercase naming convention. Package names must be hyphen-separated lowercase segments, each starting with a letter, e.g. hydra-kernel or hydra-python."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.MissingDocumentationError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the module containing the undocumented definition"}}}]}}}},
                  {
                    "name": "name",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "The name of the undocumented definition"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A top-level definition whose term (or type, for type definitions) lacks a description annotation. Every definition in a Hydra module is expected to be wrapped in a doc \"...\" annotation at its top level."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.ModuleInMultiplePackagesError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The module namespace declared by more than one package"}}}]}}}},
                  {
                    "name": "firstPackage",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.PackageName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the first package declaring the module"}}}]}}}},
                  {
                    "name": "secondPackage",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.PackageName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the second package declaring the module"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A module namespace declared by more than one package. Module-to-package routing requires each package's declared module set to partition the module universe; a namespace declared by two packages would otherwise be routed to one of them arbitrarily, with the other declaration silently ignored."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.NestedModuleNameError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "outer",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The shorter namespace, a strict dotted-prefix of the inner namespace"}}}]}}}},
                  {
                    "name": "inner",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The longer namespace, which has the outer namespace as a strict dotted-prefix"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A module namespace which is a strict dotted-prefix of another module namespace in the same package, e.g. hydra.core.codegen and hydra.core.codegen.docs. When two such namespaces coexist, a definition name that is prefix-valid for both modules cannot be unambiguously assigned to one."}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.error.packaging.UndeclaredDependencyError",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "moduleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the module containing the undeclared reference"}}}]}}}},
                  {
                    "name": "referencedName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.model.Name"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The free name referenced by the module's definitions"}}}]}}}},
                  {
                    "name": "owningModuleName",
                    "type": {
                      "annotated": {
                        "body": {"variable": "hydra.core.packaging.ModuleName"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "The name of the module that actually defines the referenced name"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {
                        "string": "A module references a name owned by another module which is not among its declared moduleDependencies. Like a missing import: the reference may still resolve today via another module's transitive dependencies, but the declared dependency list no longer reflects what the module actually uses, and inference-time resolution is not guaranteed."}}}]}}},
          "constraints": []}}}]}