| 1 | open! Base |
| 2 | |
| 3 | (* Not sure how much people will want to use this, considering that the input is more |
| 4 | complicated and specific than the output, but they have it. *) |
| 5 | module type S = sig |
| 6 | val t_sexp_grammar : [%sexp_grammar: int Map.M(String).t] |
| 7 | end |
| 8 | |
| 9 | module _ (M : S) : sig |
| 10 | val t_sexp_grammar : int Map.M(String).t Sexplib0.Sexp_grammar.t [@@warning "-32"] |
| 11 | end = |
| 12 | M |
| 13 | |
| 14 | (* The grammar is illegible, so just make sure it builds. *) |
| 15 | |
| 16 | let (_ : _ Sexplib0.Sexp_grammar.t) = [%sexp_grammar: int Map.M(String).t] |
| 17 | |
| 18 | (* This used to give a compilation error. *) |
| 19 | let (_ : _ Sexplib0.Sexp_grammar.t) = [%sexp_grammar: _ list] |