From 4905b7341da9deb24018a1fab7e1143c2240c1b4 Mon Sep 17 00:00:00 2001 From: Bram Date: Sun, 24 Dec 2023 11:36:34 +0100 Subject: [PATCH] Complete documentation --- elm.json | 2 ++ src/Internal/Values/Event.elm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/elm.json b/elm.json index ac0cd72..d5b89d2 100644 --- a/elm.json +++ b/elm.json @@ -6,6 +6,7 @@ "version": "2.0.0", "exposed-modules": [ "Matrix", + "Matrix.Event", "Matrix.Settings", "Internal.Config.Default", "Internal.Config.Leaks", @@ -18,6 +19,7 @@ "Internal.Tools.VersionControl", "Internal.Values.Context", "Internal.Values.Envelope", + "Internal.Values.Event", "Internal.Values.Settings", "Internal.Values.Vault", "Types" diff --git a/src/Internal/Values/Event.elm b/src/Internal/Values/Event.elm index 722867b..a3a37bb 100644 --- a/src/Internal/Values/Event.elm +++ b/src/Internal/Values/Event.elm @@ -67,6 +67,8 @@ age event = Maybe.andThen (\(UnsignedData data) -> data.age) event.unsigned +{-| Decode an Event from a JSON value. +-} decoder : D.Decoder Event decoder = D.map8 Event