mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00

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.
15 lines
400 B
Text
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
|