Skip to content

Commit

Permalink
stdlib components: factor out Hide_stdlib_variants
Browse files Browse the repository at this point in the history
  • Loading branch information
just-max committed May 13, 2024
1 parent 639fa98 commit f6a08e4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/stdlib-variants/stdlib_variants.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

module Stdlib_components = Stdlib_components

module Hide_stdlib_variants = struct
(* Prevent access to the full variant library. *)
module Stdlib_variants = struct end
end

module SafeStdlib = struct
(** [SAFE] Everything safe from the standard library, including
everything safe from sub-modules of [Stdlib].*)
Expand All @@ -26,6 +31,5 @@ module SafeStdlib = struct

include SafeAliases

(* Prevent access to the full variant library. *)
module Stdlib_variants = struct end
include Hide_stdlib_variants
end

0 comments on commit f6a08e4

Please sign in to comment.