Skip to content

Commit 3427738

Browse files
authored
Merge pull request #2347 from art-w/effect-keyword
Rename Irmin.Node.S.effect type to read_effect
2 parents 7f2d988 + aa524cb commit 3427738

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
- **irmin-git**
66
- Expose `Content_addressable` type (#2329, @art-w)
77

8+
### Changed
9+
10+
- **irmin**
11+
- Rename `Node.S.effect` to `read_effect` for OCaml 5.3 compatibility (#2347, @art-w)
12+
813
### Fixed
914

1015
- **irmin-client**

src/irmin/node_intf.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ module type Core = sig
124124
purpose (so [Tree.hash] and [Tree.equal] are not in the Lwt monad as
125125
well). *)
126126

127-
type effect := expected_depth:int -> node_key -> t option
127+
type read_effect := expected_depth:int -> node_key -> t option
128128
(** The type for read effects. *)
129129

130-
val with_handler : (effect -> effect) -> t -> t
130+
val with_handler : (read_effect -> read_effect) -> t -> t
131131
(** [with_handler f] replace the current effect handler [h] by [f h]. [f h]
132132
will be called for all the recursive read effects that are required by
133133
recursive operations on nodes. .*)

0 commit comments

Comments
 (0)