Skip to content

Commit

Permalink
Set Pgx module to wrapped
Browse files Browse the repository at this point in the history
This makes us only expose the Pgx module at top-level.

Most of this stuff was never intended to be used directly, so the only
major change is that Pgx_value now _must_ be referenced as Pgx.Value.

Fixes #101
  • Loading branch information
brendanlong committed Jun 23, 2020
1 parent e3d789e commit 3aea1ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion pgx/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ let () = Jbuild_plugin.V1.send @@ {|

(library
(public_name pgx)
(wrapped false)
(libraries hex ipaddr uuidm re sexplib0)
(preprocess (pps ppx_compare ppx_custom_printf ppx_sexp_conv |} ^ preprocess ^ {|)))
|}
6 changes: 3 additions & 3 deletions pgx_value_core/src/pgx_value_core.mli
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(** Pgx_value types using Core_kernel's Date and Time modules *)
open Core_kernel

type v = Pgx_value.v [@@deriving compare, sexp_of]
type t = Pgx_value.t [@@deriving compare, sexp_of]
type v = Pgx.Value.v [@@deriving compare, sexp_of]
type t = Pgx.Value.t [@@deriving compare, sexp_of]

include Pgx_value_intf.S with type v := v and type t := t
include module type of Pgx.Value with type v := v and type t := t

val of_date : Date.t -> t
val to_date_exn : t -> Date.t
Expand Down

0 comments on commit 3aea1ac

Please sign in to comment.