roc/examples/tui/Main.roc
2022-01-23 21:41:54 +01:00

14 lines
310 B
Text

app "tui"
packages { pf: "platform" }
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 "!",
}