Skip to content

Commit

Permalink
Drop dependency to OCaml 5
Browse files Browse the repository at this point in the history
  • Loading branch information
lthms committed Jan 11, 2024
1 parent 519f598 commit ca7aee4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 7 (unreleased)

- Drop dependency to OCaml 5.

# 6 (2023-12-29)

## `spatial`
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DESTDIR ?= ${HOME}/.local
OCAML_COMPILER ?= ocaml.5.1.1
OCAML_COMPILER ?= ocaml-system
BUILD_PROFILE ?= release

.PHONY: all
Expand Down
8 changes: 7 additions & 1 deletion bin/spatialblock/main.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
open Spatial_ipc
module App_id_map = Hashtbl.Make (String)

module App_id_map = Hashtbl.Make (struct
type t = string

let equal = String.equal
let hash = Hashtbl.hash
end)

let app_id_map = App_id_map.create 10

Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(name spatial-shell)
(synopsis
"Implementing a spatial model inspired by Material Shell, for i3 and Sway")
(depends (ocaml (>= "5.0.0")) poll (clap (>= "0.3.0")) ezjsonm-encoding conf-scdoc))
(depends (ocaml (>= "4.12")) poll (clap (>= "0.3.0")) ezjsonm-encoding conf-scdoc))

(package
(allow_empty)
Expand Down
2 changes: 1 addition & 1 deletion spatial-shell.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage: "https://github.com/lthms/spatial-shell"
bug-reports: "https://github.com/lthms/spatial-shell/issues"
depends: [
"dune" {>= "3.0"}
"ocaml" {>= "5.0.0"}
"ocaml" {>= "4.12"}
"poll"
"clap" {>= "0.3.0"}
"ezjsonm-encoding"
Expand Down

0 comments on commit ca7aee4

Please sign in to comment.