diff options
| author | Adelyn Breelove <[email protected]> | 2019-02-19 08:44:59 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2019-02-19 08:44:59 -0700 |
| commit | 5d3f7eb6b08400547b7f0ee2b075d6b133bc90eb (patch) | |
| tree | dad047c149379ff99b5d563abbfff0739b8f40cf /lib/models/channel/channel_t.mli | |
| parent | Update License (diff) | |
| download | disml-5d3f7eb6b08400547b7f0ee2b075d6b133bc90eb.tar.xz disml-5d3f7eb6b08400547b7f0ee2b075d6b133bc90eb.zip | |
Change channel.t to use more flexible variant
Diffstat (limited to 'lib/models/channel/channel_t.mli')
| -rw-r--r-- | lib/models/channel/channel_t.mli | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/models/channel/channel_t.mli b/lib/models/channel/channel_t.mli index 313939f..4193c47 100644 --- a/lib/models/channel/channel_t.mli +++ b/lib/models/channel/channel_t.mli @@ -52,13 +52,13 @@ type category = { } [@@deriving sexp, yojson { exn = true }]
(** Wrapper variant for all channel types. *)
-type t =
-| Group of group
-| Private of dm
-| GuildText of guild_text
-| GuildVoice of guild_voice
-| Category of category
-[@@deriving sexp, yojson { exn = true }]
+type t = [
+| `Group of group
+| `Private of dm
+| `GuildText of guild_text
+| `GuildVoice of guild_voice
+| `Category of category
+] [@@deriving sexp, yojson { exn = true }]
(** Intermediate used internally. *)
type channel_wrapper = {
|