more warnings

This commit is contained in:
Simon Cruanes 2021-12-02 11:48:57 -05:00
parent cea6647c3c
commit 16bea66073
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 19 additions and 45 deletions

View file

@ -27,10 +27,6 @@ val map : f:('a -> 'b) -> 'a t -> 'b t
(** [map ~f [a0; a1; …; an]] applies function [f] in turn to [[a0; a1; …; an]]. (** [map ~f [a0; a1; …; an]] applies function [f] in turn to [[a0; a1; …; an]].
Safe version of {!List.map}. *) Safe version of {!List.map}. *)
val (>|=) : 'a t -> ('a -> 'b) -> 'b t
(** [l >|= f] is the infix version of [map] with reversed arguments.
@since 0.5 *)
val cons : 'a -> 'a t -> 'a t val cons : 'a -> 'a t -> 'a t
(** [cons x l] is [x::l]. (** [cons x l] is [x::l].
@since 0.12 *) @since 0.12 *)
@ -49,10 +45,6 @@ val cons_maybe : 'a option -> 'a t -> 'a t
[cons_maybe None l] is [l]. [cons_maybe None l] is [l].
@since 0.13 *) @since 0.13 *)
val (@) : 'a t -> 'a t -> 'a t
(** [l1 @ l2] is like [append l1 l2].
Concatenate the two lists [l1] and [l2]. *)
val filter : f:('a -> bool) -> 'a t -> 'a t val filter : f:('a -> bool) -> 'a t -> 'a t
(** [filter ~f l] returns all the elements of the list [l] (** [filter ~f l] returns all the elements of the list [l]
that satisfy the predicate [f]. The order of the elements that satisfy the predicate [f]. The order of the elements
@ -379,18 +371,9 @@ val mguard : bool -> unit t
]} ]}
@since 3.1 *) @since 3.1 *)
val (<*>) : ('a -> 'b) t -> 'a t -> 'b t
(** [funs <*> l] is [product (fun f x -> f x) funs l]. *)
val (<$>) : ('a -> 'b) -> 'a t -> 'b t
(** [(<$>)] is [map]. *)
val return : 'a -> 'a t val return : 'a -> 'a t
(** [return x] is [x]. *) (** [return x] is [x]. *)
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
(** [l >>= f] is [flat_map f l]. *)
val take : int -> 'a t -> 'a t val take : int -> 'a t -> 'a t
(** [take n l] takes the [n] first elements of the list [l], drop the rest. *) (** [take n l] takes the [n] first elements of the list [l], drop the rest. *)
@ -691,15 +674,6 @@ val range' : int -> int -> int t
(** [range' i j] is like {!range} but the second bound [j] is excluded. (** [range' i j] is like {!range} but the second bound [j] is excluded.
For instance [range' 0 5 = [0;1;2;3;4]]. *) For instance [range' 0 5 = [0;1;2;3;4]]. *)
val (--) : int -> int -> int t
(** [i -- j] is the list of integers from [i] to [j] included.
Infix alias for [range]. *)
val (--^) : int -> int -> int t
(** [i --^ j] is the list of integers from [i] to [j] excluded.
Infix alias for [range'].
@since 0.17 *)
val replicate : int -> 'a -> 'a t val replicate : int -> 'a -> 'a t
(** [replicate n x] replicates the given element [x] [n] times. *) (** [replicate n x] replicates the given element [x] [n] times. *)

View file

@ -17,7 +17,7 @@
(public_name containers) (public_name containers)
(wrapped false) (wrapped false)
(modules :standard \ mkshims) (modules :standard \ mkshims)
(flags :standard -warn-error -a+8 -w -32-67 -safe-string -nolabels -open (flags :standard -warn-error -a+8 -w -32 -safe-string -strict-sequence -nolabels -open
CCMonomorphic) CCMonomorphic)
(ocamlopt_flags (:include ../flambda.flags)) (ocamlopt_flags (:include ../flambda.flags))
(libraries seq either containers.monomorphic)) (libraries seq either containers.monomorphic))