mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 03:43:51 +00:00
compiler/check_typeclass.m:
Improve the wording of several diagnostics, including
- by using color more sparingly,
- by making diagnostics complete sentences, and
- by including an explicit "error:" prefix to signify a
diagnostic's severity.
compiler/resolve_unify_functor.m:
Improve the wording of a diagnostic.
tests/invalid/ambiguous_method_1.err_exp:
tests/invalid/ambiguous_method_2.err_exp:
tests/invalid/bad_instance2.err_exp:
tests/invalid/bug476.err_exp:
tests/invalid/complex_constraint_err.err_exp:
tests/invalid/constraint_proof_bug_lib.err_exp:
tests/invalid/fundeps_coverage.err_exp:
tests/invalid/inconsistent_instances.err_exp:
tests/invalid/instance_var_bug.err_exp:
tests/invalid/instances_pc.instances_pc_helper_1.err_exp:
tests/invalid/invalid_instance_declarations.err_exp:
tests/invalid/mpj3.err_exp:
tests/invalid/quant_constraint_1.err_exp:
tests/invalid/quant_constraint_2.err_exp:
tests/invalid/range_restrict.err_exp:
tests/invalid/ref_to_implicit_pred.err_exp:
tests/invalid/tc_err1.err_exp:
tests/invalid/tc_err2.err_exp:
tests/invalid/typeclass_bogus_method.err_exp:
tests/invalid/typeclass_constraint_extra_var.err_exp:
tests/invalid/typeclass_missing_mode_2.err_exp:
tests/invalid/typeclass_test_10.err_exp:
tests/invalid/typeclass_test_12.err_exp:
tests/invalid/typeclass_test_3.err_exp:
tests/invalid/typeclass_test_4.err_exp:
tests/invalid/typeclass_test_5.err_exp:
tests/invalid/typeclass_test_9.err_exp:
tests/invalid_nodepend/fundeps_unbound_in_ctor.err_exp:
tests/invalid_nodepend/type_vars.err_exp:
tests/invalid_nodepend/unbound_type_vars.err_exp:
tests/invalid_nodepend/undetermined_existential_data_type.err_exp:
Expect updated diagnostics.
1.5 KiB
1.5 KiB
ambiguous_method_1.m:022: In declaration for function `e'/0:
ambiguous_method_1.m:022: error in type class constraints: type variable `E'
ambiguous_method_1.m:022: occurs in the constraints, but is not determined by
ambiguous_method_1.m:022: the function's argument or result types.
ambiguous_method_1.m:022: All types occurring in typeclass constraints must
ambiguous_method_1.m:022: be fully determined. A type is fully determined if
ambiguous_method_1.m:022: one of the following holds:
ambiguous_method_1.m:022: 1) All type variables occurring in the type are
ambiguous_method_1.m:022: determined.
ambiguous_method_1.m:022: 2) The type occurs in a constraint argument, that
ambiguous_method_1.m:022: argument is in the range of some functional
ambiguous_method_1.m:022: dependency for that class, and the types in all of
ambiguous_method_1.m:022: the domain arguments for that functional dependency
ambiguous_method_1.m:022: are fully determined.
ambiguous_method_1.m:022: A type variable is determined if one of the
ambiguous_method_1.m:022: following holds:
ambiguous_method_1.m:022: 1) The type variable occurs in the argument types
ambiguous_method_1.m:022: of the predicate, function, or constructor which is
ambiguous_method_1.m:022: constrained.
ambiguous_method_1.m:022: 2) The type variable occurs in a type which is
ambiguous_method_1.m:022: fully determined.
ambiguous_method_1.m:022: See the "Functional dependencies" section of the
ambiguous_method_1.m:022: reference manual for details.
ambiguous_method_1.m:022: error in type class constraints: type variable `E'
ambiguous_method_1.m:022: occurs in the constraints, but is not determined by
ambiguous_method_1.m:022: the function's argument or result types.
ambiguous_method_1.m:022: All types occurring in typeclass constraints must
ambiguous_method_1.m:022: be fully determined. A type is fully determined if
ambiguous_method_1.m:022: one of the following holds:
ambiguous_method_1.m:022: 1) All type variables occurring in the type are
ambiguous_method_1.m:022: determined.
ambiguous_method_1.m:022: 2) The type occurs in a constraint argument, that
ambiguous_method_1.m:022: argument is in the range of some functional
ambiguous_method_1.m:022: dependency for that class, and the types in all of
ambiguous_method_1.m:022: the domain arguments for that functional dependency
ambiguous_method_1.m:022: are fully determined.
ambiguous_method_1.m:022: A type variable is determined if one of the
ambiguous_method_1.m:022: following holds:
ambiguous_method_1.m:022: 1) The type variable occurs in the argument types
ambiguous_method_1.m:022: of the predicate, function, or constructor which is
ambiguous_method_1.m:022: constrained.
ambiguous_method_1.m:022: 2) The type variable occurs in a type which is
ambiguous_method_1.m:022: fully determined.
ambiguous_method_1.m:022: See the "Functional dependencies" section of the
ambiguous_method_1.m:022: reference manual for details.