Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename Caml -> StdLib #111

Open
justjoheinz opened this issue Nov 14, 2024 · 0 comments
Open

rename Caml -> StdLib #111

justjoheinz opened this issue Nov 14, 2024 · 0 comments

Comments

@justjoheinz
Copy link

I am a complete ocaml newbie, hence I do not create a PR, however I tried to execute:

 dune build examples/hello_async.exe                                             [10:59:57]
File "examples/hello_async.ml", line 64, characters 50-64:
64 |     try Wm.Rd.lookup_path_info_exn "what" rd with Caml.Not_found -> "world"
                                                       ^^^^^^^^^^^^^^
Error (alert deprecated): module Core.Caml
[since 2023-01] use Stdlib instead of Caml

File "examples/hello_async.ml", line 64, characters 50-64:
64 |     try Wm.Rd.lookup_path_info_exn "what" rd with Caml.Not_found -> "world"
                                                       ^^^^^^^^^^^^^^
Error: Unbound constructor Caml.Not_found

the error was indeed fixed by replacing the moduke/namespace name Caml with StdLib inside the example/hello_aync.ml file. I do not know if there is a better or different solution to the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant