ocaml-dune / csexp

Minimal support for Canonical S-expressions
MIT License
27 stars 7 forks source link

parse_string_many returns `a (t, int * string) result` #21

Closed mro closed 1 year ago

mro commented 1 year ago

as opposed to the documentation saying (t list, int * string) result

utop # Csexp.parse_string_many "((1:a)(2:bb))";;
- : (Csexp.t list, int * string) result =
Ok [Csexp.List [Csexp.List [Csexp.Atom "a"]; Csexp.List [Csexp.Atom "bb"]]]

version 1.5.1

mro commented 1 year ago

hngrr, misinterpreted the types