File tree Expand file tree Collapse file tree 4 files changed +13
-10
lines changed
Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ The format of the events will probably change in the future.
108108To build the platform from source, you need to install
109109[ roc] ( https://www.roc-lang.org/install ) , [ go] ( https://go.dev/dl/ ) and
110110[ zig] ( https://ziglang.org/learn/getting-started/#installing-zig ) . Zig is used to
111- crosscompile the go code. At the moment, it only works with zig ` 0.11.0 ` .
111+ crosscompile the go code. Zig ` 0.14.0 ` is needed (not released at the moment of
112+ writing).
112113
113114Run:
114115
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ For example:
66
77``` sh
88$ curl localhost:9000
9- 16
9+ 17
1010```
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ handle_request! = |_request, _model|
2020 list =
2121 response_body
2222 |> Decode . from_bytes (Json . utf8 )
23- |> Result . map_err ? (|_| ErrDecodingGitHubResponse )
23+ |> Result . map_err (|_| ErrDecodingGitHubResponse )?
2424
2525 Ok (
2626 {
Original file line number Diff line number Diff line change @@ -56,13 +56,15 @@ to_encoder = |utc|
5656
5757# decoder : Decoder Utc fmt where fmt implements DecoderFormatting
5858decoder =
59- Decode . custom |bytes, fmt|
60- bytes
61- |> Decode . from_bytes_partial (fmt )
62- |> |{ result, rest }| {
63- result: result |> Result . map_ok (|seconds | seconds |> from_seconds()),
64- rest,
65- }
59+ Decode . custom (
60+ |bytes, fmt|
61+ bytes
62+ |> Decode . from_bytes_partial (fmt )
63+ |> |{ result, rest }| {
64+ result: result |> Result . map_ok (|seconds | seconds |> from_seconds()),
65+ rest,
66+ },
67+ )
6668
6769from_seconds : I64 -> Utc
6870from_seconds = |seconds|
You can’t perform that action at this time.
0 commit comments