Skip to content

Commit b749571

Browse files
authored
Merge pull request #346 from talex5/beta1
Update to OCaml 5.0.0~beta1
2 parents 80036f3 + ab7c76a commit b749571

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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:
55
RUN 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:
911
RUN opam install utop fmt
1012
# Install Eio's dependencies (adding just the opam files first to help with caching):

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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.
113113
You can either install it yourself or build the included [Dockerfile](./Dockerfile).
114114

115115
To install it yourself:
116116

117117
1. 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

129127
If you want to run the latest development version from Git, run these commands

dune-project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
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))

eio.opam

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
]
2730
build: [
2831
["dune" "subst"] {dev}
2932
[

lib_eio/core/debug.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)