From ac56576828930c4f88556a0ae1c82ad94ca5717f Mon Sep 17 00:00:00 2001 From: zapashcanon Date: Tue, 28 Jan 2025 17:18:19 +0100 Subject: [PATCH] do not re-export stuff, unhide Format.formatter --- dune-project | 4 ---- prelude.opam | 4 ---- src/dune | 5 +---- src/prelude.ml | 10 +++------- 4 files changed, 4 insertions(+), 19 deletions(-) diff --git a/dune-project b/dune-project index ef9aa6a..557a245 100644 --- a/dune-project +++ b/dune-project @@ -29,9 +29,5 @@ (depends (ocaml (>= 4.13)) - bos - cmdliner - fmt - fpath (ocamlformat :with-dev-setup) (odoc :with-dev-setup))) diff --git a/prelude.opam b/prelude.opam index 66d8012..acc70ed 100644 --- a/prelude.opam +++ b/prelude.opam @@ -12,10 +12,6 @@ bug-reports: "https://git.zapashcanon.fr/zapashcanon/prelude/issues" depends: [ "dune" {>= "3.0"} "ocaml" {>= "4.13"} - "bos" - "cmdliner" - "fmt" - "fpath" "ocamlformat" {with-dev-setup} "odoc" {with-dev-setup} "odoc" {with-doc} diff --git a/src/dune b/src/dune index def5b8c..7a036db 100644 --- a/src/dune +++ b/src/dune @@ -3,7 +3,4 @@ (modules prelude) (wrapped false) (libraries - (re_export bos) - (re_export cmdliner) - (re_export fmt) - (re_export fpath))) + (re_export fmt))) diff --git a/src/prelude.ml b/src/prelude.ml index fe6c85d..7e605da 100644 --- a/src/prelude.ml +++ b/src/prelude.ml @@ -275,17 +275,13 @@ end (* Use the fmt library instead. *) module Printf = Empty -module Fmt = struct - type formatter = Format.formatter - - include Fmt +(* USe the fmt library instead. *) +module Format = struct + type nonrec formatter = Format.formatter end -module Format = Empty - (* Use Cmdliner instead. *) module Arg = Empty -module Cmdliner = Cmdliner (* Use unlabeled version instead. *) module ArrayLabels = Empty