type caps = < Cap.open_in ; Cap.open_out ; Cap.readdir >type kind = {magic : string;extension : string;
}type 'd result = | Nothing| New| Opened of 'd
val command :
caps ->
kind ->
current:(unit -> 'd) ->
string ->
t ->
t * 'd resultval autosave : caps -> kind -> current:(unit -> 'd) -> t -> t