roc/examples/typescript-interop/main.roc
2023-03-16 08:31:26 -04:00

13 lines
No EOL
283 B
Text

app "libhello"
packages { pf: "platform/main.roc" }
imports []
provides [main] to pf
main : U64 -> Str
main = \num ->
if num == 0 then
"I need a positive number here!"
else
str = Num.toStr num
"The number was \(str), OH YEAH!!! 🤘🤘"