Packages

MessagePack (msgpack) implementation for Gleam

Retired package: Release invalid - Not stable

Current section

Files

Jump to
glepack src glepack@data.erl
Raw

src/glepack@data.erl

-module(glepack@data).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export_type([value/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(" This module contains the data types used in MessagePack encoding and decoding\n").
-type value() :: nil |
{boolean, boolean()} |
{integer, integer()} |
{float, float()} |
{string, binary()} |
{binary, bitstring()} |
{array, list(value())} |
{map, gleam@dict:dict(value(), value())} |
{extension, integer(), bitstring()}.