From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 9864A7EE6A for ; Fri, 31 May 2013 05:43:41 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.161; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.161 as permitted sender) identity=mailfrom; client-ip=134.160.33.161; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.161 as permitted sender) identity=helo; client-ip=134.160.33.161; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgMBACsbqFGGoCGhh2dsb2JhbABagzq/fg4BAQEIDQkHFiiCYn00AkwNCAEBiAmaU6BtknoDiR6KT4NRhh6OQA X-IPAS-Result: AgMBACsbqFGGoCGhh2dsb2JhbABagzq/fg4BAQEIDQkHFiiCYn00AkwNCAEBiAmaU6BtknoDiR6KT4NRhh6OQA X-IronPort-AV: E=Sophos;i="4.87,776,1363129200"; d="scan'208";a="19712489" Received: from postman1.riken.jp (HELO postman.riken.jp) ([134.160.33.161]) by mail2-smtp-roc.national.inria.fr with ESMTP; 31 May 2013 05:43:40 +0200 Received: from postman.riken.jp (postman1.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id 21A8632C0363 for ; Fri, 31 May 2013 12:43:36 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id 7B41632A0085 for ; Fri, 31 May 2013 12:43:35 +0900 (JST) Message-ID: <51A81C67.50902@riken.jp> Date: Fri, 31 May 2013 12:43:35 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: caml-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.5.31.33044 Subject: [Caml-list] automatic extaction of the .mli (and a little more) from the .ml Hello, Is there some recommended tool/script to generate a .mli from the corresponding .ml? I want a little more than ocamlc -i: - I think there should be tags in the .ml file as comments that say "export this" to the .mli. By default, things are not exported. - maybe it should have an option to say to replicate the ocamldoc comments in the .mli. - it could be nice if the order in which things are exported to the .mli can be specified, maybe as an argument of the tag. So that the .mli can be more readable (only backward references to concepts, etc.) If there is a need to create a tool, let's call it "nomli". :) Regards, F. PS: I'm not going to maintain both a .mli and a .ml. I feel it is a dumb and error-prone job and that itches me.