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