| 1 |
open! Base |
| 2 |
open! Ppxlib |
| 3 |
|
| 4 |
module Generic : sig |
| 5 |
type 'specific t = |
| 6 |
| Omit_nil |
| 7 |
| Sexp_array of core_type |
| 8 |
| Sexp_bool |
| 9 |
| Sexp_list of core_type |
| 10 |
| Sexp_option of core_type |
| 11 |
| Specific of 'specific |
| 12 |
end |
| 13 |
|
| 14 |
module Of_sexp : sig |
| 15 |
type t = |
| 16 |
| Default of expression Lifted.t |
| 17 |
| Required |
| 18 |
|
| 19 |
val create : loc:Location.t -> label_declaration -> t Generic.t |
| 20 |
end |
| 21 |
|
| 22 |
module Sexp_of : sig |
| 23 |
module Drop : sig |
| 24 |
type t = |
| 25 |
| No_arg |
| 26 |
| Compare |
| 27 |
| Equal |
| 28 |
| Sexp |
| 29 |
| Func of expression Lifted.t |
| 30 |
end |
| 31 |
|
| 32 |
type t = |
| 33 |
| Drop_default of Drop.t |
| 34 |
| Drop_if of expression Lifted.t |
| 35 |
| Keep |
| 36 |
|
| 37 |
val create : loc:Location.t -> label_declaration -> t Generic.t |
| 38 |
end |
| 39 |
|
| 40 |
|
| 41 |
val lift_default : loc:location -> label_declaration -> expression -> expression Lifted.t |