Skip to content

Commit

Permalink
Depend on OCaml 5.1.1+ (links-lang#1192)
Browse files Browse the repository at this point in the history
This patch raises the lower bound of the dependency `ocaml` to 5.1.1 and
onwards.

We discussed this during the monthly Links Developer Meeting; and it
was agreed that we would raise the lower bound to OCaml 5 to encourage
the use of effect handlers to extend and simplify the code base.
  • Loading branch information
dhil authored Jan 22, 2024
1 parent 11652c2 commit 1a7b8f6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
os:
- ubuntu-20.04
ocaml-compiler:
- 4.14.1
- 5.1.1

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -71,8 +71,7 @@ jobs:
os:
- ubuntu-20.04
ocaml-compiler:
- 4.14.1
- 5.0.0
- 5.1.1

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -113,8 +112,7 @@ jobs:
os:
- ubuntu-20.04
ocaml-compiler:
- 4.14.1
- 5.0.0
- 5.1.1

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -202,8 +200,7 @@ jobs:
os:
- ubuntu-20.04
ocaml-compiler:
- 4.14.1
- 5.0.0
- 5.1.1

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

## Require OCaml 5.1.1

The minimum required OCaml version has been raised to 5.1.1.

# 0.9.8

This release includes minor bug fixes, improvements, and a breaking change regarding the syntax of handlers.
Expand Down
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

We recommend installing Links using the OPAM tool (version >= 2.1), available from [opam.ocaml.org](https://opam.ocaml.org/).

Links requires at least OCaml 4.08.0 to build and install. Therefore
Links requires at least OCaml 5.1.1 to build and install. Therefore
you should first install the minimum (or greater) required version of
OCaml:

```
$ opam switch install 4.08.0
$ opam switch create 5.1.1
```

You can then install Links and its database drivers simply by issuing the commands:
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
(name links)
(synopsis "The Links Programming Language")
(description "Links is a functional programming language designed to make web programming easier.")
(depends (ocaml (>= : 4.14.0))
(depends (ocaml (>= : 5.1.1))
(dune-configurator (>= : 3.8))
ppx_deriving
(ppx_deriving_yojson (>= 3.3))
Expand Down
2 changes: 1 addition & 1 deletion links.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ doc: "https://links-lang.org/quick-help.html"
bug-reports: "https://github.com/links-lang/links/issues"
depends: [
"dune" {>= "2.7"}
"ocaml" { >= "4.14.0"}
"ocaml" { >= "5.1.0"}
"dune-configurator" { >= "3.8"}
"ppx_deriving"
"ppx_deriving_yojson" {>= "3.3"}
Expand Down

0 comments on commit 1a7b8f6

Please sign in to comment.