summaryrefslogtreecommitdiffstats
path: root/ocamldoc/odoc_to_text.ml
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2013-12-17 03:52:50 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2013-12-17 03:52:50 +0000
commitcfa350c31aebe2e06611d0fbb41fe88b1f30b8e8 (patch)
tree9809a9c320538a793866f1ca7a408fe09679a902 /ocamldoc/odoc_to_text.ml
parent024c8ad498a7c0fc35355c543d94a14bfd3fab51 (diff)
merge generative functors
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14365 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'ocamldoc/odoc_to_text.ml')
-rw-r--r--ocamldoc/odoc_to_text.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/ocamldoc/odoc_to_text.ml b/ocamldoc/odoc_to_text.ml
index 7b08417e7..c91387570 100644
--- a/ocamldoc/odoc_to_text.ml
+++ b/ocamldoc/odoc_to_text.ml
@@ -428,8 +428,11 @@ class virtual to_text =
List
(List.map
(fun (p, desc_opt) ->
- [Code (p.mp_name^" : ")] @
- (self#text_of_module_type p.mp_type) @
+ begin match p.mp_type with None -> [Raw ""]
+ | Some mty ->
+ [Code (p.mp_name^" : ")] @
+ (self#text_of_module_type mty)
+ end @
(match desc_opt with
None -> []
| Some t -> (Raw " ") :: t)