= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
Turn directories into OCaml modules (deprecated)
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
Authors
Maintainers
Sources
0.5.1.tar.gz
md5=0012771f63a3559e4f712632c0943258
Description
Deprecated in favor of the built-in mechanism in Dune.
An Ocamlbuild plugin that turns directories tagged with "namespace" into a nested module hierarchy. Each directory becomes a module. Filenames become scoped, so you can have the same filename in multiple directories. So, if you have
server
|-- foo.ml
+-- bar.ml
client
|-- foo.ml
|-- bar.ml
|-- ui
| +-- reactive.ml
+-- client.ml
It is as if you had written
module Server =
struct
module Foo = (* server/foo.ml *)
module Bar = (* server/bar.ml *)
end
module Client =
struct
module Foo = (* client/foo.ml *)
module Bar = (* client/bar.ml *)
module Ui =
struct
module Reactive = (* client/ui/reactive.ml *)
end
include (* client/client.ml *)
end
Published: 06 Mar 2016
Dependencies (3)
-
ocamlbuild
build
-
ocamlfind
build
-
ocaml
>= "4.02"
Dev Dependencies
-
None
Used by
-
None
Conflicts
-
None
On This Page