aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMaxime Dénès2017-09-07 12:46:12 +0200
committerMaxime Dénès2017-09-07 12:46:12 +0200
commit7034b1188bba2c41de87ce980f5ecfab9d2220f3 (patch)
treec2e66295f871471bdd6f0070ea843246abc90338 /plugins
parent084ef41c98d52078f85831c940d0a073a4ccdb7a (diff)
parent37b81fe10d2da12180d96d931ba2b76370e1eea5 (diff)
Merge PR #931: Parametrize module body
Diffstat (limited to 'plugins')
-rw-r--r--plugins/extraction/extract_env.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/extraction/extract_env.ml b/plugins/extraction/extract_env.ml
index 89c2a0ae30..f503c572d0 100644
--- a/plugins/extraction/extract_env.ml
+++ b/plugins/extraction/extract_env.ml
@@ -281,7 +281,8 @@ and extract_msignature_spec env mp1 reso = function
MTfunsig (mbid, extract_mbody_spec env mp mtb,
extract_msignature_spec env' mp1 reso me)
-and extract_mbody_spec env mp mb = match mb.mod_type_alg with
+and extract_mbody_spec : 'a. _ -> _ -> 'a generic_module_body -> _ =
+ fun env mp mb -> match mb.mod_type_alg with
| Some ty -> extract_mexpression_spec env mp (mb.mod_type,ty)
| None -> extract_msignature_spec env mp mb.mod_delta mb.mod_type