Skip to content

Commit

Permalink
Added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakooo0 committed Jul 31, 2023
1 parent 15c0410 commit ef285c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/Ur/Deconstructor.elm
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ const f value noun =
Nothing


{-| Extracts a `BigInt`.
-}
bigint : Deconstructor BigInt
bigint x =
case x of
Expand Down Expand Up @@ -272,6 +274,8 @@ lazy f noun =
f () noun


{-| Maps over the result of the deconstructor.
-}
map : (a -> b) -> Deconstructor a -> Deconstructor b
map g f noun =
f noun |> Maybe.map g
Expand Down
7 changes: 2 additions & 5 deletions src/Ur/Sub.elm
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
module Ur.Sub exposing
( Sub, subscribe, none, batch
, sink
)
module Ur.Sub exposing (Sub, subscribe, none, batch, sink)

{-| This module is conceptually similar to `Platform.Sub`, but allows you to subscribe to Urbit channels.
@docs Sub, subscribe, none, batch
@docs Sub, subscribe, none, batch, sink
-}

Expand Down

0 comments on commit ef285c4

Please sign in to comment.