mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00

It is outdated and source of bugs for users. There should only exist one form of basic-cli. There are still plently of local platforms if we need them for testing. On top of that, more can be added to cli_test_examples if needed.
15 lines
462 B
Text
15 lines
462 B
Text
app "ingested-file-bytes"
|
|
packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.6.0/QOQW08n38nHHrVVkJNiPIjzjvbR3iMjXeFY5w1aT46w.tar.br" }
|
|
imports [
|
|
pf.Stdout,
|
|
"ingested-file.roc" as ownCode : _, # A type hole can also be used here.
|
|
]
|
|
provides [main] to pf
|
|
|
|
main =
|
|
# Due to how ownCode is used, it will be a List U8.
|
|
ownCode
|
|
|> List.map Num.toNat
|
|
|> List.sum
|
|
|> Num.toStr
|
|
|> Stdout.line
|