change just Json module name

This commit is contained in:
Luke Boswell 2023-06-04 17:37:01 +10:00
parent 7b22785b2b
commit c1ff49be6c
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
26 changed files with 5495 additions and 5530 deletions

View file

@ -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 _ -> []