mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
12 lines
262 B
Text
12 lines
262 B
Text
app [main, Model] { pf: platform "platform/main.roc" }
|
|
|
|
import pf.Program exposing [Program]
|
|
|
|
Model : Str
|
|
|
|
main : Program Model
|
|
main = {
|
|
init: \{} -> "Hello World",
|
|
update: \model, new -> Str.concat model new,
|
|
view: \model -> Str.concat model "!",
|
|
}
|