You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above example, I must create a dune file like:
(library (name foo))
and Foo module can be referred anywhere.
When I rename foo to foo__ , although dune generates Foo__ module and data.ml can only refer the module, I cannot name foo__ to lib/data/biz/foo due to conflict with the flat namesmace.
Desired Behavior
I want dune to create modules with respect to the directory structure.
For example. the above project may contain "bundled" modules for each directories such as:
module Foo = struct
module Foo (* or `include Foo` *)
module Foo_pat
end
...
module Biz = struct
module Biz
end
Or I can create such modules via generate_module in dune 2.8 ?
(* However, I wish I can get these modules without any settings ;) *)
The text was updated successfully, but these errors were encountered:
The below project seems to have namespaces with directories:
however, dune supports only "flat" namespace.
In the above example, I must create a dune file like:
and
Foo
module can be referred anywhere.When I rename
foo
tofoo__
, although dune generatesFoo__
module and data.ml can only refer the module, I cannot namefoo__
to lib/data/biz/foo due to conflict with the flat namesmace.Desired Behavior
I want dune to create modules with respect to the directory structure.
For example. the above project may contain "bundled" modules for each directories such as:
Or I can create such modules via
generate_module
in dune 2.8 ?(* However, I wish I can get these modules without any settings ;) *)
The text was updated successfully, but these errors were encountered: