Skip to main content
0 votes
0 answers
28 views

I have the following tree for a webapp project. I'd like to copy the index.html file to the same _build directory that the built javascript gets placed in. I tried using ChatGPT a few days ago but all ...
ixb's user avatar
  • 72
0 votes
0 answers
81 views

I am developing a server with Ocaml/Dream. The server can be installed with Opam and called from anywhere in the disk. For the server icon, I use : Dream.get (favicon_path) (fun request -> ...
Abdelghani's user avatar
0 votes
1 answer
211 views

let read_file path = In_channel.with_open_bin path In_channel.input_all let solve input = input let () = read_file "input.txt" |> solve |> print_endline I am currently trying ...
Thedudeabides's user avatar
0 votes
0 answers
61 views

I cloned this repo https://github.com/cucapra/gator and tried to run the makefile as per the first instruction in README. It seems to have already setup a dune project and just needs a build but I ...
Thedudeabides's user avatar
2 votes
1 answer
103 views

I have two libraries: lib/ dune src.ml src.mli test/ dune test.ml both are libraries and I am testing in the test library with ppx_inline_test as i do not want them to be ...
2048points's user avatar
0 votes
1 answer
99 views

With the Dune buildsystem, it is easy to output a bytecode file for an executable for use with ocamldebug. However, it isn't clear how to do the same with inline unit tests; the Dune docs say how to ...
user avatar
0 votes
1 answer
394 views

I am trying to install OCaml on Windows using WSL. I followed these instructions: Install WSL So I opened a PowerShell and typed wsl --install After having rebooted, I started the Windows Command ...
flori10's user avatar
  • 536
0 votes
0 answers
82 views

I have a Melange project with the following directory structure: ├── src │ ├── dune │ ├── App.re ├── __tests__ │ ├── dune │ ├── App_test.re The dune files in both the src and __tests__ ...
Joseph Murrey's user avatar
2 votes
1 answer
161 views

I'm new to OCaml and Dune, and I'm trying to set up a basic project with test cases. I want my test module to be able to read in text files from a subdirectory and process the input of those files. ...
Fluffy the Togekiss's user avatar
0 votes
1 answer
484 views

I want to run unit test with OCaml and OUnit2 I have followed the instructions in this tutorial https://cs3110.github.io/textbook/chapters/data/ounit.html However, when I run dune build I get the ...
flori10's user avatar
  • 536
0 votes
1 answer
93 views

when I suppose to use Z3 lib in OCaml open Z3 the first line is getting Unbound module Z3, which is not able to solve. the code is able to run correctly when I add #use "topfind";; #require ...
bftang's user avatar
  • 1
0 votes
1 answer
378 views

I have just installed ocaml, opam and dune on my computer and tried to run a new project using $ dune init project calculator $ cd calculator/ $ code . which creates the project and opens it in VS ...
Hechtolino's user avatar
0 votes
1 answer
251 views

I'm trying to generate .automaton files I added this to the dune file inside lib/ folder (menhir (flags --explain --dump) (modules parser)) Then I run dune build, if I do find . -name '*....
geckos's user avatar
  • 6,449
0 votes
1 answer
465 views

I have somehow managed to install Opam on MSYS2 on Windows. When I open the MSYS2 MING64 (the blue one) shell and enter opam --version it tells me that it is installed. When I run opam install dune ,...
flori10's user avatar
  • 536
4 votes
0 answers
996 views

I am developing an Ocaml project using WSL and VSCode with the Ocaml Platform extension running ocaml-lsp-server. My project builds and runs correctly, but in VSCode there are a bunch of red squiggly ...
Aaron Gostein's user avatar

15 30 50 per page
1
2 3 4 5
8