From: Anton Bachin <antronbachin@gmail.com>
To: OCaml users <caml-list@inria.fr>
Subject: [Caml-list] [ANN] Namespaces – sensible file naming for OCaml projects
Date: Mon, 29 Feb 2016 10:40:27 -0600 [thread overview]
Message-ID: <C628A7A5-5DF1-48C7-9BBD-E6E2199F6EC1@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]
Hello,
I would like to announce the release of Namespaces, an Ocamlbuild plugin that
gives your project logical nested modules based on its directory layout, as is
common in the build systems of many other languages.
So, src/server/foo.ml becomes Server.Foo, and src/client/foo.ml becomes
Client.Foo. There is no conflict between the two foo.ml files, and thus no need
to call them server_foo.ml and client_foo.ml.
The project page and documentation can be found here:
https://github.com/aantron/namespaces <https://github.com/aantron/namespaces>
Namespaces works, but it abuses Ocamlbuild heavily, so there may be many corner
cases that are not yet addressed well. Bug reports are very much welcome. If
something can’t be fixed by changing Namespaces, perhaps Namespaces will be a
good point of discussion for updating Ocamlbuild itself, or other OCaml tooling.
Regards and enjoy,
Anton
P.S. How is Ocamlbuild spelled? I have seen it as Ocamlbuild, OCamlbuild (which
stands to reason), and ocamlbuild in monospace font, in the original manual.
[-- Attachment #2: Type: text/html, Size: 1945 bytes --]
next reply other threads:[~2016-02-29 16:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-29 16:40 Anton Bachin [this message]
2016-02-29 16:53 ` Arto Bendiken
2016-02-29 18:37 ` Ivan Gotovchits
2016-02-29 18:45 ` Anton Bachin
2016-03-01 1:00 ` Junsong Li
2016-03-01 9:25 ` Thomas Refis
2016-03-07 22:38 ` Anton Bachin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C628A7A5-5DF1-48C7-9BBD-E6E2199F6EC1@gmail.com \
--to=antronbachin@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox