on master help sign in
Added docs
ef285c4iko
src/Ur/Deconstructor.elm+4
@@ -113,6 +113,8 @@ const f value noun =
113 Nothing
113 Nothing
114
114
115
115
116+{-| Extracts a `BigInt`.
117+-}
116bigint : Deconstructor BigInt
118bigint : Deconstructor BigInt
117bigint x =
119bigint x =
118 case x of
120 case x of
@@ -272,6 +274,8 @@ lazy f noun =
272 f () noun
274 f () noun
273
275
274
276
277+{-| Maps over the result of the deconstructor.
278+-}
275map : (a -> b) -> Deconstructor a -> Deconstructor b
279map : (a -> b) -> Deconstructor a -> Deconstructor b
276map g f noun =
280map g f noun =
277 f noun |> Maybe.map g
281 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
1+module Ur.Sub exposing (Sub, subscribe, none, batch, sink)
3− , sink
4− )
5
2
6{-| This module is conceptually similar to `Platform.Sub`, but allows you to subscribe to Urbit channels.
3{-| This module is conceptually similar to `Platform.Sub`, but allows you to subscribe to Urbit channels.
7
4
8−@docs Sub, subscribe, none, batch
5+@docs Sub, subscribe, none, batch, sink
9
6
10-}
7-}
11
8