Skip to content

Commit 13200ed

Browse files
Julowpanglesd
authored andcommitted
Compat with 4.02
1 parent 1862c3a commit 13200ed

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/utils/odoc_utils.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
(** Re-export for compatibility with 4.02. *)
2+
type ('a, 'b) result = ('a, 'b) Result.result = Ok of 'a | Error of 'b
3+
14
(** The [result] type and a bind operator. This module is meant to be opened. *)
25
module ResultMonad = struct
36
(** Re-export for compat *)
@@ -43,6 +46,8 @@ module EitherMonad = struct
4346
end
4447

4548
module List = struct
49+
include List
50+
4651
let rec concat_map ?sep ~f = function
4752
| [] -> []
4853
| [ x ] -> f x

src/xref2/env.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
open Odoc_model
33
open Odoc_model.Names
44
open Odoc_model.Paths
5+
open Odoc_utils
56

67
type lookup_unit_result = Forward_reference | Found of Lang.Compilation_unit.t
78

src/xref2/env.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
open Odoc_model
44
open Odoc_model.Paths
5+
open Odoc_utils
56

67
type lookup_unit_result = Forward_reference | Found of Lang.Compilation_unit.t
78

test/integration/dune

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@
66
(applies_to json_expansion_with_sources)
77
(enabled_if
88
(> %{ocaml_version} 4.14.0)))
9+
10+
(cram
11+
(applies_to html_support_files)
12+
(enabled_if
13+
(> %{ocaml_version} 4.14.0)))

0 commit comments

Comments
 (0)