mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
12 lines
401 B
Text
12 lines
401 B
Text
platform "python-interop"
|
|
requires {} { main : arg -> ret where arg implements Decoding, ret implements Encoding }
|
|
exposes []
|
|
packages {}
|
|
imports [TotallyNotJson]
|
|
provides [mainForHost]
|
|
|
|
mainForHost : List U8 -> List U8
|
|
mainForHost = \json ->
|
|
when Decode.fromBytes json TotallyNotJson.json is
|
|
Ok arg -> Encode.toBytes (main arg) TotallyNotJson.json
|
|
Err _ -> []
|