Skip to content

Commit

Permalink
Chores
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Dec 13, 2024
1 parent 00f58a2 commit 615896f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
4 changes: 1 addition & 3 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
version=0.27.0
profile=conventional
break-infix=fit-or-vertical
parse-docstrings=true
profile=janestreet
9 changes: 7 additions & 2 deletions bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ module PrettyBytes = struct
end

let options =
PrettyBytes.Options.create ~signed:false
PrettyBytes.Options.create
~signed:false
~locale:(Primitive.inject (`String "en"))
~bits:false ~binary:false ~minimumFractionDigits:1 ~maximumFractionDigits:2
~bits:false
~binary:false
~minimumFractionDigits:1
~maximumFractionDigits:2
()
;;

let () = print_endline @@ PrettyBytes.pretty_bytes ~number:128000000 ~options ()
24 changes: 10 additions & 14 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
(lang dune 3.17)

(name example)

(license ISC)

(authors "The ocsigen team")

(maintainers "[email protected]")

(source
(github ocsigen/ts2ocaml-example))

(generate_opam_files true)

(license ISC)
(maintainers "The ocsigen team <[email protected]>")
(authors "The ocsigen team <[email protected]>")
(source (github ocsigen/ts2ocaml-example))

(package
(name example)
(synopsis "Example use of ts2ocaml")
Expand All @@ -23,7 +18,8 @@
gen_js_api
js_of_ocaml-compiler
(ocaml-lsp-server :with-dev-setup)
(ocamlformat
(and
:with-dev-setup
(= 0.27.0)))))
(ocamlformat (and :with-dev-setup (= 0.27.0)))))

(pin
(package (name ts2ocaml-jsoo-stdlib))
(url "git+https://github.com/ocsigen/ts2ocaml.git#jsoo-stdlib-v2.0.0-beta.3"))
4 changes: 2 additions & 2 deletions example.opam
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
opam-version: "2.0"
synopsis: "Example use of ts2ocaml"
description: "Example use of ts2ocaml"
maintainer: ["[email protected]"]
authors: ["The ocsigen team"]
maintainer: ["The ocsigen team <[email protected]>"]
authors: ["The ocsigen team <[email protected]>"]
license: "ISC"
homepage: "https://github.com/ocsigen/ts2ocaml-example"
bug-reports: "https://github.com/ocsigen/ts2ocaml-example/issues"
Expand Down

0 comments on commit 615896f

Please sign in to comment.