package ppx_mica

  1. Overview
  2. Docs

Source file include.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
open Ppxlib
open Ast_builder.Default

(** Produces an [include] [structure_item] at location [loc] 
    for some [module_expr] [ME] *)
let include_module_expr ~(loc : Location.t) (mod_expr : module_expr) :
  structure_item =
  pstr_include ~loc (include_infos ~loc mod_expr)

(** Produces an [include] [structure_item] at location [loc] for 
    some [structure] *)
let include_structure ~(loc : Location.t) (structure : structure) :
  structure_item =
  include_module_expr ~loc (pmod_structure ~loc structure)