summaryrefslogtreecommitdiff
path: root/compiler/Extract.ml
diff options
context:
space:
mode:
authorSon Ho2023-09-14 00:42:46 +0200
committerSon Ho2023-09-14 00:42:46 +0200
commite8aa3804ef0134631cc16b257775ad8f98690c29 (patch)
tree31e9e6e2a2540d15a949742522bd916a2b449112 /compiler/Extract.ml
parent378bfbd1be69ee54cfe7fad97ca3b09d0f80f62b (diff)
Make progress on the extraction
Diffstat (limited to 'compiler/Extract.ml')
-rw-r--r--compiler/Extract.ml10
1 files changed, 9 insertions, 1 deletions
diff --git a/compiler/Extract.ml b/compiler/Extract.ml
index fe007d31..864d513f 100644
--- a/compiler/Extract.ml
+++ b/compiler/Extract.ml
@@ -529,7 +529,15 @@ let type_decl_kind_to_qualif (kind : decl_kind)
*)
Some "with"
| (Assumed | Declared), None -> Some "Axiom"
- | _ -> raise (Failure "Unexpected"))
+ | SingleNonRec, None ->
+ (* This is for traits *)
+ Some "Record"
+ | _ ->
+ raise
+ (Failure
+ ("Unexpected: (" ^ show_decl_kind kind ^ ", "
+ ^ Print.option_to_string show_type_decl_kind type_kind
+ ^ ")")))
| Lean -> (
match kind with
| SingleNonRec ->