Quantcast
Channel: OCaml - Topics tagged dune
Browsing all 517 articles
Browse latest View live

Dune lockfiles are not cross-platform. How should we approach checking them...

Dune can create a “lock directory” containing a package dependency solution for a project. The command to generate the lock directory is dune pkg lock, and the dependency solution will be specific to...

View Article


Dune: How to add a dependency on one executable to another?

Hi everyone. I have a Dune project consisting of two executables, each defined with the executable stanza in their own subdirectories. One of the executables uses the Bos library to invoke the other...

View Article


Build error when using c stubs and external object file

I’m trying to run some hand written asm code in my ocaml program via c stubs using dune, but i cannot get it to work. This is my dune file: (library (name c_test) (extra_objects test) (foreign_stubs...

View Article

Is there a "dune utop" that works more like utop's #use?

First, is there comprehensive documentation available for utop? I can’t seem to find any. I am using the CS3110 book (2.1. The OCaml Toplevel — OCaml Programming: Correct + Efficient + Beautiful) and...

View Article

Decoders in dune

I am currently working on some project that involves Ocaml’s build system Dune. However, in my work, there is some tasks that require taking a file (mainly its path) which contains some text written...

View Article


Windows, Dune and portability: best approaches?

Hello, I’m trying to improve the portability of our Dune-based tool, which currently relies heavily on using Unix-like commands here and there, for instance: (action (with-stdout-to config.ml (run sed...

View Article

Windows Ocaml Installation without any linux emulator

What is the best IDE to use to write Ocaml programs on windows with DKML? I’ve had troubles setting it up with sublime text and VSCode. Does anybody have an installation guide for setting up up DKML...

View Article

Image may be NSFW.
Clik here to view.

Building in Network-less Environment + Dune Env Issues

I’m currently trying to package my application that depends on many opam dependencies to an Ubuntu PPA. Importantly, Ubuntu PPA’s require sending source that are then built on their own machines to...

View Article


Splitting submodules with Dune

Greetings, Second post in here I’ve yet another problem understanding the module system, and how dune make them work. My program contains simple functor called “Trip”, taking two modules as parametric...

View Article


Dune Cram tests with several file outputs

I want to test a script that produces 10 different files, and I wonder if Cram tests would be feasible, or if I should use something else. My Cram test is basically $ run_script.exe <options>....

View Article

Cannot find Flambda report files

I cannot find where Flambda inlining reports are generated. The documentation is quite vague with respect to where should I find them… this is how I use Flambda (lib/dune): (env (release...

View Article

Dune keyword is not recognised, but dune is installed

I installed Ocaml on Windows, and tried the running the following: with-dkml dune build test.exe However, the keyword dune is not recognised:...

View Article

Proposal: a new `exports` field in `findlib` META files

Proposal: exports field in findlib META files Note: in what follows I use, following dune terminology, the term library names for what is formally ocamlfind package names. Recently I have deprecated a...

View Article


Image may be NSFW.
Clik here to view.

[ANN] Dune Developer Preview Updates

Hi folks! Just wanted to share some of the work the Dune has been up to lately re: the Developer Preview we announced here – we’ll be using this thread to share more updates as things go. As always,...

View Article

[ANN] Dune dev meeting on 2024-08-21, 10am CEST

Hi! The next public dune dev meeting will be held on 2024-08-21, 10am CEST. Please feel free to let me know any topics you’d like us to discuss and I’ll update the meeting notes. The zoom link for the...

View Article


Default flags for the project

I have two questions regarding dune build flags. what are the default (standard) flags for ocamlopt, ocamlc, js_of_ocaml and how to set default flags for the entire project (i.e. one containing many...

View Article

How can I Toploop inside a script?

Hello Folks, I hope everyone is doing good =] I’m very new Ocaml and I’m having trouble trying to use Toploop from the compiler-libs in a script, maybe someone here could help. Even tho I’m providing...

View Article


`opam install --deps-only .` still doesn't work

I have a dune-project with multiple package stanzas (not sure if this matters, but I’m mentioning it in case it does); the dune-project manages the .opam files automatically. When I build using: opam...

View Article

Dune libraries stanza leakage

Here is something that has been puzzling me. I have a multi-library package, with a bunch of different dune files for each library. The package itself has a number of dependencies, and then the...

View Article

Using `[@inlined]` attribute with `dune`

Hi there, I am wondering how to use the [@inlined] attribute (that checks that a function call is inlined by the compiler) with dune. It seems that the dev profile of dune inhibits cross-module...

View Article
Browsing all 517 articles
Browse latest View live