let pp_fields fields =
(if fields <> [] then "\n" else "") ^
String.concat ";\n"
- (List.map (fun (name,ty) -> " " ^ name ^ ": " ^ pp_term ty) fields)
+ (List.map
+ (fun (name,ty,coercion) ->
+ " " ^ name ^ if coercion then ":>" else ": " ^ pp_term ty) fields)
let pp_obj = function
| Ast.Inductive (params, types) ->