mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 16:51:53 +03:00
14 lines
297 B
Plaintext
14 lines
297 B
Plaintext
app "tui"
|
|
packages { pf: "tui-platform/main.roc" }
|
|
imports [pf.Program.{ Program }]
|
|
provides [main] { Model } to pf
|
|
|
|
Model : Str
|
|
|
|
main : Program Model
|
|
main = {
|
|
init: \{} -> "Hello World",
|
|
update: \model, new -> Str.concat model new,
|
|
view: \model -> Str.concat model "!",
|
|
}
|