on master help sign in
Added docs
commitef285c4a9d5a5434f5fe7150b55d59ff6f63e91d authoriko <mail@iko.soy> dateMon 31 Jul 2023, 17:15 (3 years ago) parent15c0410
2 files changed+6−5
src/Ur/Deconstructor.elm+4 src/Ur/Sub.elm+2−5
src/Ur/Deconstructor.elm+4
@@ -113,6 +113,8 @@ const f value noun =
113113 Nothing
114114
115115
116+{-| Extracts a `BigInt`.
117+-}
116118bigint : Deconstructor BigInt
117119bigint x =
118120 case x of
@@ -272,6 +274,8 @@ lazy f noun =
272274 f () noun
273275
274276
277+{-| Maps over the result of the deconstructor.
278+-}
275279map : (a -> b) -> Deconstructor a -> Deconstructor b
276280map g f noun =
277281 f noun |> Maybe.map g
src/Ur/Sub.elm+2−5
@@ -1,11 +1,8 @@
1−module Ur.Sub exposing
2− ( Sub, subscribe, none, batch
3− , sink
4− )
1+module Ur.Sub exposing (Sub, subscribe, none, batch, sink)
52
63{-| This module is conceptually similar to `Platform.Sub`, but allows you to subscribe to Urbit channels.
74
8−@docs Sub, subscribe, none, batch
5+@docs Sub, subscribe, none, batch, sink
96
107-}
118