summaryrefslogtreecommitdiff
path: root/src/elab_err.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-10-21 19:56:20 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-10-21 19:56:20 -0400
commit31e82db1a6d6d448fa783a9829afacf7af6a03ba (patch)
tree6465034492b6001bba2f7d8dd6e24677fc42d0d2 /src/elab_err.sml
parent29ee4365f5e19e5eccfa57252cca0bd0f0600ba9 (diff)
Sum prose
Diffstat (limited to 'src/elab_err.sml')
-rw-r--r--src/elab_err.sml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elab_err.sml b/src/elab_err.sml
index 8131633c..e8d7ff68 100644
--- a/src/elab_err.sml
+++ b/src/elab_err.sml
@@ -109,7 +109,7 @@ datatype cunify_error =
| COccursCheckFailed of con * con
| CIncompatible of con * con
| CExplicitness of con * con
- | CKindof of kind * con
+ | CKindof of kind * con * string
| CRecordFailure of con * con
fun cunifyError env err =
@@ -131,8 +131,8 @@ fun cunifyError env err =
eprefaces "Differing constructor function explicitness"
[("Con 1", p_con env c1),
("Con 2", p_con env c2)]
- | CKindof (k, c) =>
- eprefaces "Unexpected kind for kindof calculation"
+ | CKindof (k, c, expected) =>
+ eprefaces ("Unexpected kind for kindof calculation (expecting " ^ expected ^ ")")
[("Kind", p_kind k),
("Con", p_con env c)]
| CRecordFailure (c1, c2) =>