roc/examples/benchmarks/platform/Package-Config.roc
Joshua Warner 8b58d5cbc7 Switch to always encoding package names / paths as strings
This will simplify parsing and make it possible to have a uniform lexer for the language. Previously unquoted package names were allowed to include '-'s, which aren't valid identifiers.

In the future, we'll distinguish local paths from packages in the package-manager by looking for a ".roc" suffix, which should only be present in local paths.
2021-12-23 20:11:14 -08:00

15 lines
400 B
Text

platform "folkertdev/foo"
requires { model=>Model, msg=>Msg } { main : Effect {} }
exposes []
packages {}
imports [ Task.{ Task } ]
provides [ mainForHost ]
effects fx.Effect
{
putLine : Str -> Effect {},
putInt : I64 -> Effect {},
getInt : Effect { value : I64, errorCode : [ A, B ], isError : Bool }
}
mainForHost : Task {} [] as Fx
mainForHost = main