mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
mono and update Json.fromUtf8 and Json.toUtf8 to Json.json
This commit is contained in:
parent
95f3d84684
commit
4f22b0747f
21 changed files with 1606 additions and 1606 deletions
|
@ -7,6 +7,6 @@ platform "python-interop"
|
|||
|
||||
mainForHost : List U8 -> List U8
|
||||
mainForHost = \json ->
|
||||
when Decode.fromBytes json Json.fromUtf8 is
|
||||
Ok arg -> Encode.toBytes (main arg) Json.toUtf8
|
||||
when Decode.fromBytes json Json.json is
|
||||
Ok arg -> Encode.toBytes (main arg) Json.json
|
||||
Err _ -> []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue