roc/examples/tea/platform/Pkg-Config.roc
2020-12-14 21:40:11 +01:00

19 lines
515 B
Text

platform folkertdev/foo
requires { main : {} }
exposes []
packages {}
imports [Cmd]
provides [ mainForHost ]
effects Effect
{
putChar : I64 -> Effect {},
putLine : Str -> Effect {},
getLine : Effect Str
}
mainForHost :
{
init : ({} -> { model: I64 as Model, cmd : (Cmd.Cmd [ Line Str ]) as Fx }) as Init,
update : ([ Line Str ], I64 -> { model: I64, cmd : Cmd.Cmd [ Line Str ] } ) as Update
}
mainForHost = main