CI and compat with 4.8

This commit is contained in:
Simon Cruanes 2024-01-20 00:59:26 -05:00
parent c8852b15ab
commit 8c1c38f772
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
4 changed files with 6 additions and 5 deletions

View file

@ -17,8 +17,9 @@ jobs:
#- macos-latest
#- windows-latest
ocaml-compiler:
- 4.05
- 4.14
- 4.08.x
- 4.14.x
- 5.1.x
runs-on: ${{ matrix.os }}

View file

@ -19,7 +19,7 @@
seq
base-threads
result
(ocaml (>= 4.05))
(ocaml (>= 4.08))
(odoc :with-doc)
(conf-libcurl :with-test)
(ptime :with-test)

View file

@ -102,7 +102,7 @@ module Histogram = struct
let create reg ?(tags = []) ?descr ~buckets name : t =
opt_iter_ (validate_descr_ "histogram") descr;
let buckets =
List.sort Float.compare buckets
List.sort Stdlib.compare buckets
|> List.map (fun thresh -> thresh, A.make 0)
in
let buckets = Array.of_list @@ buckets @ [ infinity, A.make 0 ] in

View file

@ -15,7 +15,7 @@ depends: [
"seq"
"base-threads"
"result"
"ocaml" {>= "4.05"}
"ocaml" {>= "4.08"}
"odoc" {with-doc}
"conf-libcurl" {with-test}
"ptime" {with-test}