mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +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.
14 lines
307 B
Text
14 lines
307 B
Text
platform "examples/cli"
|
|
requires {} { main : Task {} [] }# TODO FIXME
|
|
exposes []
|
|
packages {}
|
|
imports [ Task.{ Task } ]
|
|
provides [ mainForHost ]
|
|
effects fx.Effect
|
|
{
|
|
putLine : Str -> Effect {},
|
|
getLine : Effect Str
|
|
}
|
|
|
|
mainForHost : Task {} [] as Fx
|
|
mainForHost = main
|