mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
change just Json module name
This commit is contained in:
parent
7b22785b2b
commit
c1ff49be6c
26 changed files with 5495 additions and 5530 deletions
|
@ -2,11 +2,11 @@ platform "python-interop"
|
|||
requires {} { main : arg -> ret | arg has Decoding, ret has Encoding }
|
||||
exposes []
|
||||
packages {}
|
||||
imports [Json]
|
||||
imports [TotallyNotJson]
|
||||
provides [mainForHost]
|
||||
|
||||
mainForHost : List U8 -> List U8
|
||||
mainForHost = \json ->
|
||||
when Decode.fromBytes json Json.json is
|
||||
Ok arg -> Encode.toBytes (main arg) Json.json
|
||||
when Decode.fromBytes json TotallyNotJson.json is
|
||||
Ok arg -> Encode.toBytes (main arg) TotallyNotJson.json
|
||||
Err _ -> []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue