Add roc code to ts-interop example

This commit is contained in:
Richard Feldman 2023-03-16 08:31:17 -04:00
parent 7ce4d3b22f
commit ca900550a2
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
3 changed files with 292 additions and 6 deletions

View file

@ -0,0 +1,13 @@
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!!! 🤘🤘"