File tree Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ RUN sudo ln -sf /usr/bin/opam-2.1 /usr/bin/opam
44# Add the alpha repository with some required preview versions of dependencies:
55RUN opam remote add alpha git+https://github.com/kit-ty-kate/opam-alpha-repository.git
66# Ensure opam-repository is up-to-date:
7- RUN cd opam-repository && git pull origin 42a177d7ac37cd347aab366a90d20469203fc926 && opam update
7+ RUN cd opam-repository && git pull -q origin 7791c44928d6c1594479a50bb8051856fa2c0ca1 && opam update
8+ # Switch to OCaml 5.0.0 (beta)
9+ RUN opam pin remove ocaml-variants && opam install ocaml-base-compiler.5.0.0~beta1 --update-invariant
810# Install utop for interactive use:
911RUN opam install utop fmt
1012# Install Eio's dependencies (adding just the opam files first to help with caching):
Original file line number Diff line number Diff line change @@ -109,21 +109,19 @@ Remember that you can always fall back to using Lwt libraries to provide missing
109109
110110## Getting OCaml 5.0
111111
112- You'll need OCaml 5.0.0~ alpha1 .
112+ You'll need OCaml 5.0.0~ beta1 .
113113You can either install it yourself or build the included [ Dockerfile] ( ./Dockerfile ) .
114114
115115To install it yourself:
116116
1171171 . Make sure you have opam 2.1 or later (run ` opam --version ` to check).
118118
119- 2 . Use opam to install OCaml 5.0.0~ alpha1 :
119+ 2 . Use opam to install OCaml 5.0.0~ beta1 :
120120
121121 ```
122- opam switch create 5.0.0~alpha1 --repo=default,alpha=git+https://github.com/kit-ty-kate/opam-alpha-repository.git
122+ opam switch create 5.0.0~beta1 --repo=default,alpha=git+https://github.com/kit-ty-kate/opam-alpha-repository.git
123123 ```
124124
125- Note: if you want to use OCaml trunk instead, you'll need [ #329 ] ( https://github.com/ocaml-multicore/eio/pull/329 ) .
126-
127125## Getting Eio
128126
129127If you want to run the latest development version from Git, run these commands
Original file line number Diff line number Diff line change 1111 (name eio)
1212 (synopsis " Effect-based direct-style IO API for OCaml" )
1313 ( description " An effect-based IO API for multicore OCaml with fibers." )
14+ ( conflicts
15+ ( ocaml-base-compiler ( < 5 .0.0~beta1) ) )
1416 ( depends
1517 ( ocaml ( >= 5 .0.0) )
1618 ( bigstringaf ( >= 0 .9.0) )
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ depends: [
2424 "alcotest" {>= "1.4.0" & with-test}
2525 "odoc" {with-doc}
2626]
27+ conflicts: [
28+ "ocaml-base-compiler" {< "5.0.0~beta1"}
29+ ]
2730build: [
2831 ["dune" "subst"] {dev}
2932 [
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ let traceln ?__POS__ fmt =
2929 match Fiber. get traceln_key with
3030 | Some { traceln } -> traceln
3131 | None
32- | exception Unhandled -> default_traceln
32+ | exception ( Effect. Unhandled _ ) -> default_traceln
3333 in
3434 traceln ?__POS__ fmt
3535
You can’t perform that action at this time.
0 commit comments