diff options
author | Son Ho | 2023-09-14 00:42:46 +0200 |
---|---|---|
committer | Son Ho | 2023-09-14 00:42:46 +0200 |
commit | e8aa3804ef0134631cc16b257775ad8f98690c29 (patch) | |
tree | 31e9e6e2a2540d15a949742522bd916a2b449112 /compiler/Extract.ml | |
parent | 378bfbd1be69ee54cfe7fad97ca3b09d0f80f62b (diff) |
Make progress on the extraction
Diffstat (limited to 'compiler/Extract.ml')
-rw-r--r-- | compiler/Extract.ml | 10 |
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 -> |