Skip to content
Snippets Groups Projects
Commit 4cc825ea authored by Alan Schmitt's avatar Alan Schmitt
Browse files

typed

parent f46c401a
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ let map_cstr_fields ?loc bind (cstr : constructor_description) elements = ...@@ -77,7 +77,7 @@ let map_cstr_fields ?loc bind (cstr : constructor_description) elements =
| [], [] -> [] | [], [] -> []
| f :: fs, e :: es -> | f :: fs, e :: es ->
let res = aux (fs,es) in let res = aux (fs,es) in
begin match bind e f with begin match bind f e with
| None -> res | None -> res
| Some p -> p :: res (* p is a pair identifier, code to be bound *) | Some p -> p :: res (* p is a pair identifier, code to be bound *)
end end
...@@ -170,7 +170,7 @@ let ppf_for id start ed flag body = ...@@ -170,7 +170,7 @@ let ppf_for id start ed flag body =
tag tag
*) *)
let ppf_cstr tag value = let ppf_cstr tag value =
Printf.sprintf "%s: %s" tag value Some (Printf.sprintf "%s: %s" tag value)
let ppf_single_cstrs typ = let ppf_single_cstrs typ =
Printf.sprintf "@[<v 2>{type: \"%s\"}@]" typ Printf.sprintf "@[<v 2>{type: \"%s\"}@]" typ
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment