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

[ANN] ctypes 0.21.1, now with dune support

I’m happy to announce a new release of ctypes, 0.21.1, available for installation via OPAM. ctypes is a library for binding to C libraries using pure OCaml, with the primary aim of make writing C...

View Article


Maintaining two versions of a module

Say I have a module A that is used throughout my code, and I have two possible implementations of this module, say A1 and A2. (Maybe A1 is more obviously correct, while A2 is more efficient.) By...

View Article


Opam CI failing due to unused dependency

I am trying to submit a new version of the decimal library to the opam-repository, but some of the builds are failing, e.g.:...

View Article

Running tests when using dune build watch-mode

ocaml-lsp recommends running dune build --watch-mode. Doing so prevents running tests as the build directory is locked by that dune process. What is the recommended way of using dune and ocaml-lsp...

View Article

[ANN] Dune 3.10.0

We’re happy to announce the release of Dune 3.10.0. It comes with some internal fixes as well as some interesting features: some changes in dune describe that will allow a better implementation of...

View Article


Image may be NSFW.
Clik here to view.

Dune: using both cppo and a ppx

Hello, I’m trying to use both cppo and logs-ppx preprocessing in my dune file, I’ve read: GitHub GitHub - ocaml-community/cppo: C-style preprocessor for OCaml C-style preprocessor for OCaml....

View Article

The correct ways to test a file from the lib folder

Hi there. I created the project from the tutorial Quickstart an OCaml app project using Dune dune init project dummy and edited the lib/dune and lib/lib.ml files to look like this (* lib/dune *)...

View Article

ERROR while compiling dune.3.6.2+shim

Hey guys, I’m on Windows trying to download OCaml and all its necessary components. While doing so, I had to download Merlin and I got this error. I typed this in my PowerShell ran as administrator:...

View Article


How to regenerate the opam files from dune-project?

The documentation mentions “commands like dune build and dune runtest”. This works but unfortunately, it doesn’t work with the commands like dune build <target> that we use to save on build...

View Article


How to keep static builds as is while adding ppx_expect support for dev/test...

Dear all, Cc @yurug @AltGr, I have an issue related to dune, ppx_expect, and linking. Context: I’m working on learn-ocaml, to implement ppx_expect and ppx_inline_test support. I added several unit...

View Article

Image may be NSFW.
Clik here to view.

Replacing part of a running ocaml program using the Dynlink library

I am trying to replace (a small part) of my program while it is running using the Dynlink module. I have tried to replicate this example: http://zderadicka.eu/plugins-in-ocaml-with-dynlink-library/ In...

View Article

How to put '"alcotest" {with-test}' in an opam file generated from a...

Handcrafted opam files may contain this: depends: [ "alcotest" {with-test} ... ] It tells opam that the package in question (alcotest) is only a dependency if we want to run the tests (opam install...

View Article

Problem with linking the `ssl` lib on macos

Hi, I’m trying to use the ocaml-ssl lib (GitHub - savonet/ocaml-ssl: OCaml SSL bindings.) in a project on macos. I installed it with opam install ssl (no problem during installation). However, I...

View Article


The OCaml Platform - a vehement dissent

I just read the latest version of the roadmap. I am appalled. G1) Dune is The Frontend of The OCaml Platform And the following is essentially a Dune tutorial. This is not even wrong. I think you have...

View Article

Generating documentation of private libraries with dune

I initialized my project using the recommended command $ dune init proj project_name from Quickstart — Dune documentation, and I want to generate its documentation. I used $ dune build @doc...

View Article


[Help] How to initialize project with dune

Hello. Sorry, there wasn’t a “Help” category so I posted this here. How do I initialize a project in the current directory and generate the files in the current directory without creating a parent...

View Article

Image may be NSFW.
Clik here to view.

Finding a maintainable, sustainable build system for the LLVM bindings + Dune...

Hi, I saw recent discussion about Dune’s inclusion in the OCaml platform roadmap, the future of older build systems such as OCamlfind, and whether Dune should be the “blessed” build system. To...

View Article


Image may be NSFW.
Clik here to view.

Is there any way to "depend" on an interface file from a dependency?

It’s weird title framing and I apologise, let me express with more words: The context here is I want to make sure I’m implementing the same interface as a dependency and would love to depend (or...

View Article

[ANN] dune 3.11.0

The Dune team is pleased to announce the release of Dune 3.11 “for workgroups”. Here is the changelog: Added enabled_if now supports arch_sixtyfour variable (#8023, fixes #7997, @Alizter)...

View Article

Best practices for continuous integration (CI) in 2023

What is the simplest/best way to set up continuous integration for projects using Dune + GitHub in 2023? The goal is to build and test my code for every PR, perhaps with a few different versions of...

View Article
Browsing all 517 articles
Browse latest View live