Skip to content

Commit

Permalink
Add support for OCaml 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Oct 13, 2022
1 parent f4f201e commit fe245d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
4 changes: 2 additions & 2 deletions lambdasoup.opam
Expand Up @@ -12,10 +12,10 @@ maintainer: "Anton Bachin <antonbachin@yahoo.com>"
dev-repo: "git+https://github.com/aantron/lambdasoup.git"

depends: [
# As a consequence of depending on Dune, Lambda Soup requires OCaml 4.02.3.
"dune" {>= "2.7.0"}
"markup" {>= "1.0.0"}
"ocaml" {>= "4.02.0"}
"camlp-streams" {>= "5.0.1"}
"ocaml" {>= "4.03.0"}

"bisect_ppx" {dev & >= "2.5.0"}
"ounit2" {with-test}
Expand Down
2 changes: 1 addition & 1 deletion src/dune
Expand Up @@ -5,4 +5,4 @@
(wrapped false)
(flags (:standard -w +A -warn-error -3))
(instrumentation (backend bisect_ppx))
(libraries markup))
(libraries markup camlp-streams))
13 changes: 0 additions & 13 deletions src/soup.ml
Expand Up @@ -27,19 +27,6 @@ struct
in
let suffix_length = measure_suffix 0 in
String.sub s 0 (String.length s - suffix_length)

(* Convert multiple deprecation warnings into one warning. This function can
be removed from the module if/when Lambda Soup supports only
OCaml >= 4.03. *)
let lowercase_ascii = lowercase [@ocaml.warning "-3"]
end

module Char =
struct
include Char

(* See comment by String.lowercase_ascii above. *)
let lowercase_ascii = lowercase [@ocaml.warning "-3"]
end

type element = unit
Expand Down

0 comments on commit fe245d1

Please sign in to comment.