mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
breaking: move CCSexp into the core library, delete containers.sexp
This commit is contained in:
parent
49545decbf
commit
b1b5d31665
8 changed files with 19 additions and 17 deletions
|
|
@ -23,7 +23,6 @@ module Make(Sexp : SEXP) = struct
|
||||||
let of_int x = Sexp.atom (string_of_int x)
|
let of_int x = Sexp.atom (string_of_int x)
|
||||||
let of_float x = Sexp.atom (string_of_float x)
|
let of_float x = Sexp.atom (string_of_float x)
|
||||||
let of_bool x = Sexp.atom (string_of_bool x)
|
let of_bool x = Sexp.atom (string_of_bool x)
|
||||||
let atom x = Sexp.atom x
|
|
||||||
let of_unit = Sexp.list []
|
let of_unit = Sexp.list []
|
||||||
let of_list l = Sexp.list l
|
let of_list l = Sexp.list l
|
||||||
let of_rev_list l = Sexp.list (List.rev l)
|
let of_rev_list l = Sexp.list (List.rev l)
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
(* This file is free software, part of containers. See file "license" for more details. *)
|
(* This file is free software, part of containers. See file "license" for more details. *)
|
||||||
|
|
||||||
(** {1 Handling S-expressions} *)
|
(** {1 Handling S-expressions}
|
||||||
|
|
||||||
|
@since 3.0 moved into containers-core, previously in [containers.sexp]
|
||||||
|
*)
|
||||||
|
|
||||||
type 'a or_error = ('a, string) result
|
type 'a or_error = ('a, string) result
|
||||||
type 'a sequence = ('a -> unit) -> unit
|
type 'a sequence = ('a -> unit) -> unit
|
||||||
|
|
@ -34,5 +37,11 @@ type t = [
|
||||||
|
|
||||||
include S with type t := t
|
include S with type t := t
|
||||||
|
|
||||||
val atom : string -> t
|
val equal : t -> t -> bool
|
||||||
|
(** @since 3.0 *)
|
||||||
|
|
||||||
|
val compare : t -> t -> int
|
||||||
|
(** @since 3.0 *)
|
||||||
|
|
||||||
|
val atom : string -> t
|
||||||
(** Build an atom directly from a string. *)
|
(** Build an atom directly from a string. *)
|
||||||
|
|
@ -45,6 +45,9 @@ module Vector = CCVector
|
||||||
module Monomorphic = CCMonomorphic
|
module Monomorphic = CCMonomorphic
|
||||||
module Utf8_string = CCUtf8_string
|
module Utf8_string = CCUtf8_string
|
||||||
|
|
||||||
|
module Sexp = CCSexp
|
||||||
|
module Sexp_intf = CCSexp_intf
|
||||||
|
|
||||||
module Stdlib = CCShims_.Stdlib
|
module Stdlib = CCShims_.Stdlib
|
||||||
|
|
||||||
include Monomorphic
|
include Monomorphic
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@
|
||||||
(public_name containers)
|
(public_name containers)
|
||||||
(wrapped false)
|
(wrapped false)
|
||||||
(modules :standard \ mkshims)
|
(modules :standard \ mkshims)
|
||||||
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string -nolabels -open
|
(flags :standard :standard -warn-error -a+8 -safe-string -nolabels -open
|
||||||
CCMonomorphic)
|
CCMonomorphic)
|
||||||
(ocamlopt_flags
|
(ocamlopt_flags (:include ../flambda.flags))
|
||||||
(:include ../flambda.flags))
|
|
||||||
(libraries seq containers.monomorphic))
|
(libraries seq containers.monomorphic))
|
||||||
|
|
||||||
|
(ocamllex (modules CCSexp_lex))
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
|
|
||||||
(library
|
|
||||||
(name containers_sexp)
|
|
||||||
(public_name containers.sexp)
|
|
||||||
(wrapped false)
|
|
||||||
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
|
|
||||||
(ocamlopt_flags :standard (:include ../flambda.flags))
|
|
||||||
(libraries containers))
|
|
||||||
|
|
||||||
(ocamllex (modules CCSexp_lex))
|
|
||||||
|
|
@ -6,4 +6,4 @@
|
||||||
(wrapped false)
|
(wrapped false)
|
||||||
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
|
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
|
||||||
(ocamlopt_flags :standard (:include ../flambda.flags))
|
(ocamlopt_flags :standard (:include ../flambda.flags))
|
||||||
(libraries compiler-libs.common containers containers.unix containers.sexp))
|
(libraries compiler-libs.common containers containers.unix))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue