Skip to content

Commit 4d8e7e8

Browse files
Merge pull request #388 from Leonidas-from-XIV/builtin-result
Remove result compatibility package
2 parents 0032bc0 + cea41ad commit 4d8e7e8

26 files changed

+21
-47
lines changed

bin/cli.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
open Cmdliner
2-
open Result
32

43
let named wrapper = Term.(app (const wrapper))
54

dune-project

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
(>= 1.1.0))
3333
(re
3434
(>= 1.7.2))
35-
result
3635
(ocaml-version
3736
(>= 2.3.0))
3837
(odoc-parser (>= 1.0.0))

lib/block.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1515
*)
1616

17-
open Result
1817
open Util.Result.Infix
1918

2019
module Header = struct

lib/block.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ val mk :
9696
header:Header.t option ->
9797
contents:string list ->
9898
errors:Output.t list ->
99-
(t, [ `Msg of string ]) Result.result
99+
(t, [ `Msg of string ]) result
100100

101101
val mk_include :
102102
loc:Location.t ->
103103
section:section option ->
104104
labels:Label.t list ->
105-
(t, [ `Msg of string ]) Result.result
105+
(t, [ `Msg of string ]) result
106106
(** [mk_include] builds an include block from a comment [<!-- $MDX ... -->]
107107
that is not followed by a code block [``` ... ```]. *)
108108

lib/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
(preprocess
55
(action
66
(run %{bin:cppo} -V OCAML:%{ocaml_version} %{input-file})))
7-
(libraries astring csexp fmt logs ocaml-version odoc-parser re result str
7+
(libraries astring csexp fmt logs ocaml-version odoc-parser re str
88
compiler-libs.common unix))
99

1010
(ocamllex lexer_mdx)

lib/label.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1515
*)
1616

17-
open Result
18-
1917
module Relation = struct
2018
type t = Eq | Neq | Le | Lt | Ge | Gt
2119

lib/label.mli

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ type t =
4747
val pp : Format.formatter -> t -> unit
4848

4949
val interpret :
50-
string ->
51-
(Relation.t * string) option ->
52-
(t, [> `Msg of string ]) Result.result
50+
string -> (Relation.t * string) option -> (t, [> `Msg of string ]) result
5351

54-
val of_string : string -> (t list, [ `Msg of string ] list) Result.result
52+
val of_string : string -> (t list, [ `Msg of string ] list) result
5553
(** [of_string s] cuts [s] into a list of labels. *)

lib/lexer_mdx.mli

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
type token = [ `Block of Block.t | `Section of int * string | `Text of string ]
22

3-
val markdown_token :
4-
Lexing.lexbuf -> (token list, [ `Msg of string ]) Result.result
5-
6-
val cram_token : Lexing.lexbuf -> (token list, [ `Msg of string ]) Result.result
3+
val markdown_token : Lexing.lexbuf -> (token list, [ `Msg of string ]) result
4+
val cram_token : Lexing.lexbuf -> (token list, [ `Msg of string ]) result

lib/lexer_mdx.mll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
open Result
32
open Astring
43

54
type token = [ `Block of Block.t | `Section of int * string | `Text of string ]

lib/library.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1515
*)
1616

17-
open Result
18-
1917
type t = { base_name : string; sub_lib : string option }
2018

2119
let compare t t' =

0 commit comments

Comments
 (0)